Jump to content
xisto Community
Sign in to follow this  
bash18

Looking For Upload Scripts That Support Over 150MB help

Recommended Posts

By default that is true. First I'll give the script right from the PHP Manual.

<!-- The data encoding type, enctype, MUST be specified as below --><form enctype="multipart/form-data" action="__URL__" method="POST">    <!-- MAX_FILE_SIZE must precede the file input field -->    <input type="hidden" name="MAX_FILE_SIZE" value="30000" />    <!-- Name of input element determines name in $_FILES array -->    Send this file: <input name="userfile" type="file" />    <input type="submit" value="Send File" /></form>
Replace _URL_ with the name of a PHP file.

To get around the 2 MB limit you have to make a change in the php.ini file. also from the PHP Manual

Here's a short explanation of the configuration directives.

memory_limit integer

This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. In order to use this directive you must have enabled it at compile time. So, your configure line would have included: --enable-memory-limit. Note that you have to set it to -1 if you don't want any limit for your memory.

 

For more about this feature here is a link to the appropriate section of the manual so I don't give faulty information PHP Manual common pitfalls

 

Since you probably do not have access to the php.ini file you can add this line of code to an .htaccess file in the directory where your script is going to be (Remember that .htaccess is a hidden file)

php_value upload_max_filesize 153600000
You would also have to use that value in your script. 153600000 (150MB)

Share this post


Link to post
Share on other sites

Since you probably do not have access to the php.ini file you can add this line of code to an .htaccess file in the directory where your script is going to be (Remember that .htaccess is a hidden file)

php_value upload_max_filesize 153600000
You would also have to use that value in your script. 153600000 (150MB)

66442[/snapback]


Thankyou very much...

I not good with codes or anything... im just a biggener... lol

thanks for ur help.. can i have ur msn address or email address:

 

bash18

Share this post


Link to post
Share on other sites

stevedemarcusnospam<at>bellsouth<dot>netRemove the nospam behing my name stevedemarcus and replace the <at> and <dot> with the appropriate characters (fool the spam bots but not people).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.