Forum Moderators: coopster

Message Too Old, No Replies

Can I using php to generate another php file?

using php to generate php code

         

trungngo

10:16 pm on Oct 23, 2007 (gmt 0)

10+ Year Member



Is there a way to use php script to generate a php file that contain php script?

I use fwrite and it keep adding the backslashes on the character ", '.

Trung

phparion

4:08 am on Oct 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



your magic quotes are ON, you can switch off them by putting

php_flag magic_quotes_gpc off

in your .htaccess file. You can also use ini_set() [php.net] to switch off magic quotes for the life time of your script.

For further information about magic quotes read the manual [php.net]