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


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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