Version 32 of PHP

Updated 2006-02-13 09:14:50 by suchenwi

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. --CAU


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 ].


Sarnold 2006/01/08 -- This article [L6 ] about PHP's use in Yahoo! shows Ousterhout's Dichotomy in application.

I remember of an interview of a member of Yahoo!'s team advocating strongly in favor of this way to conceive Web programming, notably by putting off some Template Engines written in pure PHP.


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>

Costs of Deploying PHP

(from the chat)

dkf If they do manage to force you on the PHP issue, insist on more money for supporting it

dkf Ideally, you need an extra body to work full-time on tracking down rogue versions of PHP apps and getting them to upgrade

dkf At work, we have a policy on PHP that all security updates must be applied within 8 working hours (1 working day) of them being made available or the app instance gets banned

dkf Only way to deal with phpBB problems it seems


Category Internet | Category Language | Category Acronym