fwrite command with additional quotes and semi-colons?
Posted: Wed Sep 17, 2003 3:39 pm
here's the problem, i need to be able to have the command:
-----------------------------------------------------------------
$fw = fopen("/home2/fearmysk/public_html/$reviewtitle.php","w+");
fwrite($fw,<?php include("something.txt"); ?>);
fclose($fw);
-----------------------------------------------------------------
this means that it's going to write to a file that i specified ,<?php include("something.txt"); ?> but since it has a semi-colon before the end of the fwire command, it cuts it off there thinking it's the end of the fwrite command, i know that u can get around this in C++ with a forward slash like \" but it doesn't seem to work here, can someone please help me?
Thank you,
FinalAeon
-----------------------------------------------------------------
$fw = fopen("/home2/fearmysk/public_html/$reviewtitle.php","w+");
fwrite($fw,<?php include("something.txt"); ?>);
fclose($fw);
-----------------------------------------------------------------
this means that it's going to write to a file that i specified ,<?php include("something.txt"); ?> but since it has a semi-colon before the end of the fwire command, it cuts it off there thinking it's the end of the fwrite command, i know that u can get around this in C++ with a forward slash like \" but it doesn't seem to work here, can someone please help me?
Thank you,
FinalAeon