Re: Fputs including php syntax?
| From: | Wico de Leeuw | Date: | Tue, 25 Feb 2003 14:40:22 +0000 |
| Subject: | Re: Fputs including php syntax? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137070@lists.php.net to get a copy of this message | ||
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