File upload missing "tmp_name" in $_FILES

Colleagues: Thanks in advance for your help!

I have a script on GoDaddy that runs PHP 5.3.24.  When I upload a file, in $_FILES I get upload error code 6.  "tmp_name" and "size" are both empty strings.  This process worked for us on PHP 5.2, and stopped working in the PHP 5.3 upgrade.

I've referred to these man pages, without finding any helpful explanation.
http://php.net/manual/en/features.file-upload.post-method.php
http://php.net/manual/en/features.file-upload.errors.php

Does GoDaddy have to restart something for my php.ini to change?

Here is my php.ini:
register_globals = off
allow_url_fopen = on

expose_php = Off
max_input_time = 1800
max_execution_time = 1800
variables_order = "EGPCS"
extension_dir = ./

precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

log_errors = On
log_errors_max_len = 1024
error_log = error_log

display_errors = Off

session.bug_compat_warn = Off
session.bug_compat_42 = Off

session.save_path = tmp
upload_tmp_dir = tmp

magic_quotes_gpc = Off

Open in new window

LVL 111
Ray PaseurAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Give me the short version of your code and I'll run it.  I have access to several accounts on Godaddy.
0
Ray PaseurAuthor Commented:
Thanks, Dave.  I'll set up a simple test.
0
Dave BaldwinFixer of ProblemsCommented:
My 'new' account with PHP Version 5.3.24 shows "post_max_size      33M" and "upload_max_filesize      32M" if that makes any difference.  I also see "upload_tmp_dir      /tmp" where you have "tmp" without the slash.  ??
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Ray PaseurAuthor Commented:
Here is the SSCCE.  Works on my host; fails on GoDaddy account.

<?php // RAY_temp_upload.php
error_reporting(E_ALL);
var_dump($_POST);
var_dump($_FILES);

$form = <<<EOD
<form method="post" enctype="multipart/form-data">
<input name="myFile" type="file" />
<input type="submit" />
</form>
EOD;

echo $form;

Open in new window

0
Ray PaseurAuthor Commented:
Let me try the slash... We had troubles with PHP sessions because the default path was ./tmp
0
Ray PaseurAuthor Commented:
Bingo!  Thanks
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome.  Them dang little things...  Thanks for the points.
0
Ray PaseurAuthor Commented:
;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.