Version 27 of PHP

Updated 2005-11-25 23:57:35

Stands for: PHP: Hypertext Preprocessor (DKF: but originally allegedly stood for Personal Home Page.)

PHP is a scripting language mainly designed for web development, where it is quite popular--arguably the single most widely-used server-side language.

This [L1 ] is PHP's home page.

For Tcl's answer to PHP, see Rivet.

Or try THP for a webserver neutral way to embed Tcl code.


In the last few years, "PHP [has become] Handy off the Web, Too", although this article [L2 ] doesn't recommend it for those who already know Tcl and similar languages.


In a remarkable newsgroup posting [L3 ], Derk Gwen provides a recipe for the C implementation required to link in a Tcl library so PHP source can also interpret Tcl.


See a Tk binding for PHP at [L4 ]


Incidentally, our own SS maintains an attractive "web-based interactive shell for PHP" he and his collaborator call "PHP Interactive" [L5 ].


See also:


The following might be an example of PHP in HTML, which however someone on 20 June 2005 posted over the previous contents of this page.

 <html>
 <head>
 <title>Counting from x to y</title>
 </head>
 <body bgcolor="white">

 <?php function print_sequence ($start, $stop, $increment) {
 if ($start > $stop) {
 return(FALSE);
 }
 elseif ($increment <= 0) {
 return(FALSE);
 }
 else {
 for ($i = $start; $i < $stop; $i = $i + $increment) {
 print "$i ";
 }
 }
 return(TRUE);
 }
 ?>

 <h1>Counting from x to y</h1>
 <p>
 Counting from 1 to 10 by 1: <?php print_sequence(1, 10, 1)?>
 </p>
 <p>
 Counting from 2 to 20 by 2: <?php print_sequence(2, 20, 2)?>
 </p>
 </body>
 </html>

Category Internet | Category Language | Category Acronym