Hey Petr:

> 2) I realize that in string obtained by fread() the following characters are
> changed:
>         #0 () -> #92#48 (\0)
>         #34 (") -> #92#34 (\")
>         #39 (') -> #92#39 (\')
>         #92 (\) -> #92#92 (\\)

WAIT A SECOND!  You've got the magic_quotes_runtime configuration variable
turned on!  To solve your problem you can:

a) turn off that feature via the the php.ini or .htaccess file
   http://www.php.net/manual/en/configuration.php#ini.magic-quotes-runtime

OR

b) use stripslashes() on the string you get back from the file
   http://www.php.net/manual/en/function.stripslashes.php 

Enjoy,

--Dan

-- 
                PHP scripts that make your job easier
              http://www.analysisandsolutions.com/code/
         SQL Solution  |  Layout Solution  |  Form Solution
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Ave, Brooklyn NY 11232    v: 718-854-0335    f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to