PHP File Upload on GoDaddy Hosting Account

April 28th, 2009 by Fuzz
Tagged as: , , , .

Hopefully this article will save one person from getting a headache.

If you have created a PHP file upload script and you are not able to get the file to actually upload to your GoDaddy.com hosting account, here are a couple of things to check for:

  1. Run a phpinfo script (create a new page with only <?php phpinfo(); ?>) and open it up. Check to see which version of PHP you are running.
  2. If you are running PHP 4, then open the PHP.ini file (in the root directory) and change the upload_tmp_dir line from “/tmp” to “./php_uploads”
  3. If your phpinfo script states that you are running PHP version 5 +, then make the same change, above, then duplicate your PHP.ini file and rename it php5.ini

That should do the trick. YMMV.

Comments are closed.