php write problems
Posted: Wed Jun 21, 2006 10:25 am
hi, i have a problem when i try and write html to a file. This is probably easy but i usually mess with db's..
file.php has this when written..
as u can see, \'s are in which i can use..
any functions which will prevent this?
thanks alot
file.php has this when written..
Code: Select all
<META HTTP-EQUIV=Refresh CONTENT=\\\\\'0; URL=forum/\\\\\'>Code: Select all
$handle = fopen($location, 'w') or die("Cannot complete my dutys");
$data = '<META EQUIP SOME HTML></a>';
fwrite($handle, $data);
fclose($ourFileHandle);thanks alot