when I save a file, I'm getting slashes added to the data.
If I have the following:
it becomes
when I save it.
if I save it again, it addes the "\" again
$path = \\\"../aameta/\\\";
here is the code to save the file:
if ($fp = fopen($file_name_path,"w+"))
{
if (fwrite ($fp,$file_data))
{
fclose($fp);
$message = "SUCCESS...! Data saved to $file_name";
} else {
$message = "Data NOT saved. Could not write data to $file_name";
}
} else {
$message = "Could not open $file_name. Data NOT Saved";
}
Can someone help me?