Jump to content

Archived

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

Janus13

PHP Upload Script

Recommended Posts

I guess that would depend on your ini settings. I am not really sure that there is a cap out side of what it set in the php.ini .

Tom

Share this post


Link to post
Share on other sites
Is there anyway I can test it?  when I upload a file less than 2M it uploads fine, but anything above that seems to timeout.

Share this post


Link to post
Share on other sites
[code]<?php phpinfo(); ?>[/code]

Put that in a file and name it phpinfo.php or something then upload and then browse to it. Look for the line that says "upload_max_filesize". That will tell you the maximum upload size set in your .ini

Share this post


Link to post
Share on other sites
Also, if you are going to upload large files, you will also want to change the timeout settings. I suggestion that you use the php function [url=http://us2.php.net/manual/en/function.ini-set.php]ini_set[/url]. You can also use [url=http://us2.php.net/manual/en/function.ini-get.php]ini_get[/url] to retrieve the value for a specific setting in the ini.

For instance, to see what your upload max is.. You can do something like this.

[code=php:0]
echo 'The upload_max_filesize is <b>' . ini_get('upload_max_filesize') . '</b><br />';
[/code]

Share this post


Link to post
Share on other sites

×

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.