Jump to content

PHP Upload Script


Janus13

Recommended Posts

[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
Link to comment
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]

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.