Escape Characters: Printing PHP
Hello,
I'm having a bit of trouble figuring out how to write php to a file. No matter how I escape it I get a slash before the closing > in the php tag..
PHP:
fwrite($profileFilePointer, "<?php require(‘./system/files/profile.php’); ?>" );
I've tried
PHP:
fwrite($profileFilePointer, "<?php require(‘./system/files/profile.php’); ?/>" );
and a few other ways of escaping, but nothing worked yet. lol.
thanks.
See original post by Jeremy Benson
Leave a Reply
You must be logged in to post a comment.