Re: [PHP] fread question

2008-12-18 Thread MikeP
From my phpinfo: magic_quotes_runtime Off Robert Cummings rob...@interjinn.com 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.

Re: [PHP] fread question

2008-12-18 Thread MikeP
But this one is ON magic_quotes_gpc Robert Cummings rob...@interjinn.com 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

Re: [PHP] fread question

2008-12-18 Thread MikeP
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

RE: [PHP] fread question

2008-12-18 Thread Boyd, Todd M.
-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_gpc is on I cant change them myself so I

RE: [PHP] fread question

2008-12-18 Thread Boyd, Todd M.
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

Re: [PHP] fread question

2008-12-18 Thread ceo
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

Re: [PHP] fread question

2008-12-18 Thread MikeP
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 tdinput name=letter type=file id=letter size=50 maxlength=255 / . . . . ?php process_uploaded_file('letter'); function

Re: [PHP] fread question

2008-12-17 Thread Robert Cummings
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 get