Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Looking For Upload Scripts That Support Over 150MB, help
bash18
post Jan 7 2006, 06:54 PM
Post #1


Newbie [ Level 2 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
Houdini
post Jan 7 2006, 09:09 PM
Post #2


Super Member
Group Icon

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 -->
<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
QUOTE
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)
CODE
php_value upload_max_filesize 153600000

You would also have to use that value in your script. 153600000 (150MB)
Go to the top of the page
 
+Quote Post
bash18
post Jan 9 2006, 10:23 AM
Post #3


Newbie [ Level 2 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
Houdini
post Jan 9 2006, 04:08 PM
Post #4


Super Member
Group Icon

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).
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Need Advice On Good Free Blog Scripts(7)
  2. PHP Script To Upload A File(13)
  3. Problem With PHP Scripts Without MySQL(1)
  4. Where Do I Find Some Free Php Scripts For Quiz / Poll?(3)
  5. Php File Upload(3)
  6. Is It Possible To Make Php Scripts Executed Without A Cron?(2)


 



- Lo-Fi Version Time is now: 12th October 2008 - 04:45 PM