Re: Missing P in PPP as in package?!

From: Date: Sat, 29 Mar 2003 13:43:56 +0000
Subject: Re: Missing P in PPP as in package?!
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-464@lists.php.net to get a copy of this message
On Sat, 2003-03-29 at 14:38, Manuel Lemos wrote: > Hello, [...] > http://talks.php.net/show/php5intro/4 > > Maybe that is why the output of the example in that page is a parse > error! ;-) That's because the webserver is running PHP4. thekid@friebes:~/devel/php > cat | ./php5/sapi/cli/php <?php namespace Languages:Perl { class Execute { function statement($cmd) { $cmd = escapeshellcmd($cmd); system("echo $cmd | perl"); } } class Insult { function oneLiner() { echo "Perl is soo ugly, even "; echo "Microsoft can't embrace it"; echo "\n<br />\n"; } } } $e = new Languages:Perl::Execute; $e->statement("print 'Hello World!'"); echo "\n<br />\n"; $i = new Languages:Perl::Insult; $i->oneLiner(); ?> ^D Hello World! <br /> Perl is soo ugly, even Microsoft can't embrace it <br /> - Timm

« previous php.internals (#464) next »