Jump to content


Photo

FTP upload script timing out...


  • Please log in to reply
2 replies to this topic

#1 AncientSage

AncientSage
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 07 July 2006 - 01:57 AM

Hello,

I've got an HTML/PHP upload script, the script uploads to an external server via FTP, however, when trying to upload bigger files (over a few MB) then the script times out. Smaller files work easily though, anyway, does anyone know of a solution for such a problem? Also, I use ...

 <input type="hidden" name="MAX_FILE_SIZE" value="10000">


...for the max file size, I'd assume that's in KB not bytes, right? Would it be better to use php instead of this to determine the max file size?

Thanks.

Note: I do not have access to a php.ini file if it is needed...

#2 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 07 July 2006 - 02:37 AM

Increase the execution time limit to something higher (or use zero for no limit). See:

http://us2.php.net/m...-time-limit.php

The MAX_FILE_SIZE hidden field (measured in bytes) must precede the file input field, and its value is the maximum filesize accepted.

Quote from: http://us2.php.net/m...oad.php#AEN7085




#3 AncientSage

AncientSage
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 07 July 2006 - 02:49 AM

Ah, thanks...that should be helpful.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users