开发者

Debug php image generator script

I feel pretty stupid asking this... but I have a small php script that generates a image based on some GETs and output's it to the browser.

It works fine on my server, but I moved it over to the client's server and I get a 404 error instead of the image. Problem is I have no ideea how to see what is wrong.

Normaly I get an error in the browser so I know what is going on... but not beacase the output is an image I ge开发者_运维知识库t nothing.

LE: I tried this, at the begining of the script:

error_reporting(E_ALL);
ini_set('display_errors', true);

but nothing.


If you get a 404, the PHP script is either not found or redirects to another resource (a generated and cached image file?) but the path to it is wrong (or the image file can't be generated because of right issues?).

As suggested, remove the header() if any (it's also probaly using a header if the script redirects to the real file after generation).

If the script is delivering the image directly without any redirect, then enabling errors won't help on a not found URL ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜