you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see.
NOmagic_quotes_runtime Off
you actually managed to put the backslashes into your text file.
NO
.
.
.
.
,/()%...@!',''); //fix special chars in
name
$_POST[$fname.'_fname'] = strtr($_POST[$fname.'
PHP does *not* do the addslashes on $_POST when you cram something into it in
your PHP code.
It does it during the process of auto-filling up $_POST.
So either:
A) you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see.
B) you actually managed to put the backslashes into yo
Hah! Forgot to add the link:
1. http://php.net/ini_set
How would you guys have ever figured out that was the page on PHP's
website you need to visit in order to view information about the
ini_set() function?!
;)
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> -Original Message-
> From: MikeP [mailto:mpel...@princeton.edu]
> Sent: Thursday, December 18, 2008 7:33 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] fread question
>
> Still having problems:
> magic_quotes_runtime is off
> BUT
> magic_quotes_
Still having problems:
magic_quotes_runtime is off
BUT
magic_quotes_gpc is on
I cant change them myself so I tried
stripslashes
That doesnt work though:
$_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']);
$test=$_POST[$fname];
$test3=stripslashes($test);
$test3 and $test are the
But this one is ON
magic_quotes_gpc
"Robert Cummings" wrote in message
news:1229567238.8302.35.ca...@localhost...
> On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote:
>> Hello,
>> I have been trying to use fread to open a file, but it always escapes
>> special characters.
>> How do I open afile wit
>From my phpinfo:
magic_quotes_runtime Off
"Robert Cummings" wrote in message
news:1229567238.8302.35.ca...@localhost...
> On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote:
>> Hello,
>> I have been trying to use fread to open a file, but it always escapes
>> special characters.
>> How do I o
On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote:
> Hello,
> I have been trying to use fread to open a file, but it always escapes
> special characters.
> How do I open afile without it modifying my original file:
>
> $_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']);
> I use this and ge
8 matches
Mail list logo