Author Topic: GoDaddy web hosting GD support  (Read 1296 times)

0 Members and 1 Guest are viewing this topic.

Offline beemer832Topic starter

  • Irregular
  • Posts: 20
    • View Profile
GoDaddy web hosting GD support
« on: July 21, 2010, 11:41:58 PM »
I am having issues getting an image resizing script using GD to work correctly on a GoDaddy webhosting account. I have the same files running on my own personal test server 100%.

http://mackscycles.com/php.phpPersonal server phpinfo()

http://kearneylawn.com/php.phpGoDaddy phpinfo()

Errors displaying when running php script in Godaddy server:
Simpleimage.php is the image resizing script I am using.

Error: No file uploaded
Warning: imagesx(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 60

Warning: imagesy(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 63

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 82

Warning: imagesx(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 60

Warning: imagesy(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 63

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/93/6413093/html/classifieds/SimpleImage.php on line 82

Warning: Cannot modify header information - headers already sent by (output started at /home/content/93/6413093/html/classifieds/insert_item.php:47) in /home/content/93/6413093/html/classifieds/insert_item.php on line 91


Thanks
Josh

Offline PFMaBiSmAd

  • Guru
  • 'Insane!'
  • *
  • Posts: 14,588
  • In Coding, Automatic means you write code to do it
    • View Profile
Re: GoDaddy web hosting GD support
« Reply #1 on: July 21, 2010, 11:48:21 PM »
Quote
Error: No file uploaded

The fact that the file did not upload means there is no file for all the GD functions to operate on, hence the GD errors.

You would need to troubleshoot why the upload is failing. Is your upload code testing the ['error'] element of $_FILES['your_upload_name_here']['error'] so that you would know why the upload is failing?
Signature: (not a comment about anything you posted unless specifically indicated)
Debugging step #1: To get past the garbage-out equals garbage-in stage in your code, you must check that the inputs to your code are what you expect.

Programming is just problem solving, but it is done in another language. You must learn enough of the programming language you are using to be able to read and write code.

Offline beemer832Topic starter

  • Irregular
  • Posts: 20
    • View Profile
Re: GoDaddy web hosting GD support
« Reply #2 on: July 22, 2010, 01:17:08 PM »
You were spot on. The diretory path had an extra few folders in it, so when I exploded the path and picked the information I needed out of it, I was pulling the wrong information.

Still having some other issues with files, but I think I can deal with it.

Thanks for your help
-Josh