[SOLVED]' changes to \'
Posted: Mon Jun 07, 2004 3:20 pm
Hi, I made a scripts which gets text from a textarea (html), but somehow it changes ' into '' is there anyway how I can change this or is str_replace good enough?
This is my code:
This is my code:
Code: Select all
$file = $_POSTї"filename"];
$content = $_POSTї"text"];
$file = fopen($file,"w");
fwrite($file,str_replace("''","'",$content));
fclose($file);