ionfish
ionfish

Reputation: 47

two sets of same php code with same version working differently on two different servers?

I made a class that converts a string of text into a png image and uploads on the server:

http://testing.mehhh.org/php/png.php (you can view php source on the page)

http://testing.mehhh.org/php/phg.php <-- shows php version

this one works great.

now I am trying to get this to work on a clients server

http://autoxplorer.com/~tameem/png.php This doesn't work!

http://autoxplorer.com/~tameem/php.php <-- also using same php version

what gives? I thought it's a permission thing.. but the png folder has full access.. and I tried a super simple uploading script and it runs and saves files to that folder. What is going on here?

Upvotes: 0

Views: 82

Answers (1)

hakre
hakre

Reputation: 197682

You have just put online some PHP scripts that link to images. The link to the images actually is different.

  1. http://testing.mehhh.org/php/png/4de9441d68cf8_1307132957.png
  2. http://autoxplorer.com/~tameem/png/4de9424d41208_1307132493.png

While the first link returns actually an image, the second image link gives a 404 error. Looks like you have not configured your server properly to actually execute the PHP in the second case to return an image.

Upvotes: 1

Related Questions