By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

strange problem with file uplaod

P: n/a
My script stopped working today after working perfectly for a month.
It still works perfectly on our test server just not on our live
server.

The form that I use is this:
<form enctype="multipart/form-data" action="" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>

then I check for an uploaded file with this:

$tmpFile = $_FILES['userfile']['tmp_name'];

echo 'tmpFile: ' . $tmpFile . "<br>\n";

but $tmpFile is empty and I just get the form back.

Everything was working perfectly and mysteriously stopped working
today. My application is also doing some other strange things like
only uploading parts of files via a php script that uses ftp which
leads me to believe it is a problem with the webserver. I've restarted
the apache a few times, but that hasn't helped. Everything else seems
to be working fine.

My script a little too big to post so I'm not posting it.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <a6**************************@posting.google.com >, Jay Donnell wrote:
Everything was working perfectly and mysteriously stopped working
today. My application is also doing some other strange things like
only uploading parts of files via a php script that uses ftp which
leads me to believe it is a problem with the webserver. I've restarted
the apache a few times, but that hasn't helped. Everything else seems
to be working fine.


Perhaps the maximum execution time was exceeded? Have a look at the
manual how to change those limits.

--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.