Ds Klur
Ds Klur

Reputation: 103

file_get_contents doesn't work with image WAMP php 5.3.13


  echo file_get_contents("result.png"); 

allow_url_fopen = On


php 5.3.13 raw data

?PNG  \0\0\0 IHDR\0\0\02\0\0\0f\0\0\0? ?P\0\0?IDATx^?y?]?u??????Rk
r??\\?\"?l??]?W

php 5.2.6(work fine) raw data

?PNG  IHDR2f? ?P?IDATx^?y?]?u??????Rk 

r??\?"?l??]?W

php 5.2.6 => php 5.3.13
=>\0
\ => \
" => \"

so i removed \0 ,
replaced \\ with \
and \" with " but it's doesn't solve the problem.
thank you for any suggestion.

Upvotes: 0

Views: 777

Answers (1)

Wrikken
Wrikken

Reputation: 70460

It's magic (you should disable that setting).

Upvotes: 1

Related Questions