The LAMP Stack (Cont.)


The LAMP stack includes four basic component technologies (cont.):
Scripting Languages
The scripting language could be any of Perl, PHP, and Python.

  • Perl, which is an interpreted, general purpose language, often used for scanning text and printing formatted reports

     undcemcs01>
    A sample Perl script is given next:

      #!/usr/bin/perl
            print "Content-type: text/html\n\n";
      print "<h3>Hello, World!</h3>";

  • PHP, which is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages

     undcemcs01>
    A sample PHP script is given next:

      <html><h3>
              <?php print "Hello, World!"; ?>
      </h3></html>

  • Python, which is a dynamic object-oriented programming language that can be used for many kinds of software development

     undcemcs01>
    A sample Python script is given next:

      #!/usr/bin/python
            print "Content-Type: text/html\n\n"
      print "<h3>Hello, World!</h3>"




      I usually meet my girlfriend at 12:59 because I like that one-to-one time.    
      — Tom Ward