|
|
|
|
![]() ![]() |
Jan 7 2006, 06:54 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 23 Joined: 7-January 06 Member No.: 10,558 |
ive heard upload scripts have a upload limit of 2MB, is this true
and does anybody have a upload script that supports 150mb ... plz let me know thanks bash18 This post has been edited by miCRoSCoPiC^eaRthLinG: Jan 8 2006, 05:42 AM |
|
|
|
Jan 7 2006, 09:09 PM
Post
#2
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
By default that is true. First I'll give the script right from the PHP Manual.
CODE <!-- The data encoding type, enctype, MUST be specified as below --> Replace _URL_ with the name of a PHP file.<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> To get around the 2 MB limit you have to make a change in the php.ini file. also from the PHP Manual QUOTE Here's a short explanation of the configuration directives. 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 pitfallsmemory_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. 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) CODE php_value upload_max_filesize 153600000 You would also have to use that value in your script. 153600000 (150MB) |
|
|
|
Jan 9 2006, 10:23 AM
Post
#3
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 23 Joined: 7-January 06 Member No.: 10,558 |
QUOTE(Houdini @ Jan 8 2006, 11:45 PM) 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) CODE php_value upload_max_filesize 153600000 You would also have to use that value in your script. 153600000 (150MB) 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 |
|
|
|
Jan 9 2006, 04:08 PM
Post
#4
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
stevedemarcusnospam<at>bellsouth<dot>net
Remove the nospam behing my name stevedemarcus and replace the <at> and <dot> with the appropriate characters (fool the spam bots but not people). |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 12th October 2008 - 04:45 PM |