stripData($data) {
return ini_get('magic_quotes_gpc') ? stripslashes($data) : $data;
}
Debbie
- Original Message -
From: "Khalid El-Kary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 1:07 PM
Subject: [PHP] slashes adde
2 8:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] slashes added before '
>
> this code snippet:
>
> function save($file)
> {
>$my_file=fopen($file,"wb");
>$my_status=fwrite($my_file,$text);
>fclose($my_file);
> }
>
> is inten
this code snippet:
function save($file)
{
$my_file=fopen($file,"wb");
$my_status=fwrite($my_file,$text);
fclose($my_file);
}
is intended to overwrite a file or create a file and write to it from a
string that's already containing text.
the problem is the after the script writes the fi
3 matches
Mail list logo