Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language PHP/FI

Date:04/20/05
Author:Alejandro López-Valencia
URL:n/a
Comments:1
Info:http://php.iquest.net/
Score: (2.63 in 27 votes)
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&oacute;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

Alternative Versions

Comments

>>   said on 04/17/09 00:45:29

Holy Cow! Fifteen years later and this is still up? Good thing I discovered Python very shortly after writing this abomination. ;-P

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!

Name:

eMail:

URL:

Security Code:
  
Comment: