Language PHP/FI
| Date: | 04/20/05 |
| Author: | Alejandro López-Valencia |
| URL: | n/a |
| Comments: | 1 |
| Info: | http://php.iquest.net/ |
| Score: |
PHP/FI is a light, and powerful, interpreter for server-parsed
("dynamic" this year, SSH since NCSA invented the thing ages ago)
html which can be used either as a CGI redirected processor or
embbedded in Apache servers. Its web site is
<a HREF="http://php.iquest.net/">http://php.iquest.net/</a>.
<HTML>
<HEAD>
<TITLE>
99 Bottles of beer.
</TITLE>
<META NAME="Author" CONTENT="Alejandro López-Valencia">
<META NAME="E-Mail" CONTENT="palopez@usa.net">
<META NAME="Description" CONTENT="Written in PHP/FI 2.0">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?
/* Don't show the access information footer */
setshowinfo(0)
>
<?
/* Drink with the boys... */
$hic = 99;
while ($hic > 0) (
$huc = $hic - 1;
/* Waste CPU, but you are using a Cray, aren't you? */
if ($hic = 1) (
$huc = $hic;
) ;
if ($hic = 1) $bottles = "bottle" else $bottles = "bottles" ;
echo $hic $bottles of beer on the wall, $hic $bottles of beer. <BR> ;
echo Take one and pass it around, <BR> ;
echo "$huc $bottles of beer on the wall. <BR>" ;
$hic--;
)
/* Pass out */
echo No more bottles of beer on the wall. <BR> ;
echo No more bottles of beer... <BR> ;
echo Go to the store and buy some more... <BR> ;
echo 99 bottles of beer. <BR> ;
?>
</BODY>
</HTML>
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments