solved - Quick PHP file_get_contents/readfile query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 22 June 2006 09:48, Gary Stainburn wrote:
>
> If I choose save as instead of open and look at the 2 files, the one
> produced using readfile is 6323 bytes long while the one using echo (tried
> print too) is 6774 bytes long. 6323 is the size of the original file.
>
> The problem appears to be that using the echo method it's back-slash
> escaping quotes.  Anyone know how to stop this?

The problem turned out to be a php.ini setting. I changed it to off and all's 
right with the world.

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), 
etc.
magic_quotes_runtime = Off


-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux