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.
[EMAIL PROTECTED]:~/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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php