fput($fp, '<? phpinfo(); ?>'); should work
else try
fput($fp, '<' . '?' . "\n"); fput($fp, 'phpinfo() . "\n"); fput($fp, '?' . '>' . "\n");
Greetz
At 09:27 25-2-03 -0500, MIKE YRABEDRA wrote:
Is it possible to use 'fputs' to write to a text file and include php code within it?
That way the generated page will have working php syntax within.
How do I make it so the php code is treated like text and not code?
-- Mike Yrabedra President
323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock _______________________________________________________________________ "Whatever you do, work at it with all your heart, as working for the Lord, not for men." ~Colossians 3:23 <{{{>< --
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php