Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File uploading problem

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
I've got a script that uploads to a Linux server. It usually works perfectly...with small files.

But when I try to upload something large (more than 1 meg or so) it dies on me...no timeout or anything...it just acts as if nothing happened. It will act like it's uploading for a few seconds, then just quit.

In php.ini I have MAX_EXECUTION_TIME set to 30 and MEMORY_LIMIT set to 20M. Yet the files I've tried are way smaller than 20mb, and it croaks WELL before 30 seconds pass.

Any ideas?
 
I'm using PHP 4.3.1 on RedHat 8 with Apache 1.3.27.

Anyways, I think I figured it out. I found the "upload_max_filesize" variable in PHP.INI. Never knew it existed.

*stomps on PHP Development textbook*

That'll teach it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top