Page 2 of 2
Posted: Wed Jul 23, 2003 11:03 am
by pootergeist
hehe
function highlight_string($str)
{
$f = fopen('/tmp/tmp.txt','w');
fwrite($f,$str);
fclose($f);
return highlight_file('/tmp/tmp.txt');
}
flytyped for added sillyness
Posted: Wed Jul 23, 2003 11:43 am
by qartis
Should we disallow similar-functions in our new ones? I mean, print uses echo, and echo uses print..
See, here's my framework for echo():
-It prepares some nice antialiased fonts with styling and whatnot
-It opens up a connection to the X server with GD
-It spits the text out to the X server at the proper coordinates, in an entirely new desktop image running at 0:0 with alpha rendering
Er.. lemme try again:
-It connects to the ethernet port (fopen /dev/eth0)
-It intercepts the data stream being sent out to the client, rerouted to a nice big buffer
-It inserts its text, and transparently returns control to the php file
Any volunteers?
