Jump to content

FTP upload script timing out...


AncientSage

Recommended Posts

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 ...

[code]
<input type="hidden" name="MAX_FILE_SIZE" value="10000">
[/code]

...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...
Link to comment
https://forums.phpfreaks.com/topic/13916-ftp-upload-script-timing-out/
Share on other sites

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

http://us2.php.net/manual/en/function.set-time-limit.php

[quote]
The MAX_FILE_SIZE hidden field (measured in bytes) must precede the file input field, and its value is the maximum filesize accepted.
[/quote]
Quote from: http://us2.php.net/manual/en/features.file-upload.php#AEN7085


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.