Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Video Upload Form

  1. #11
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    This isn't a problem with your script. This is a problem with the configuration of PHP. If you have access to the php.ini file(or equivalent), you need to change PHP's post_max_size and upload_max_filesize and possibly max_input_time. This is possible in PHP code by adding these lines
    PHP Code:
    ini_set('post_max_size','500M');//Upload up to 500 Megabytes
    ini_set('upload_max_file_size','500M');//Upload up to 500 Megabytes 
    Hope that helps.

  2. #12
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    What if we dont have access to the php.ini file
    Last edited by insanemonkey; 11-02-2007 at 09:50 AM.
    Hey new design new look, goto xudas for personal webdsign help.. (:

  3. #13
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    You can set the value also directly inside the php-script via
    <? ini_set("session.gc_maxlifetime","10800"); ?>


    try this..
    Hey new design new look, goto xudas for personal webdsign help.. (:

  4. #14
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by insanemonkey View Post
    You can set the value also directly inside the php-script via
    <? ini_set("session.gc_maxlifetime","10800"); ?>


    try this..

    Okay so I need to add this piece of code to my script to allow for large video size uploads say up to about 150MB, if so where do I add it? It will work. I am a bit lost with the last few posts by the two of you and don't quite understand fully, sorry I don't know jack about .php coding and this type of stuff.

  5. #15
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by insanemonkey View Post
    You can set the value also directly inside the php-script via
    <? ini_set("session.gc_maxlifetime","10800"); ?>


    try this..
    What? That is the entirely wrong setting to change. If you read my first post, you'll see that included that the correct code when I first posted.
    Quote Originally Posted by pssparkman View Post
    Okay so I need to add this piece of code to my script to allow for large video size uploads say up to about 150MB, if so where do I add it? It will work. I am a bit lost with the last few posts by the two of you and don't quite understand fully, sorry I don't know jack about .php coding and this type of stuff.
    Okay, where you see
    PHP Code:
    <?php
    change it to
    PHP Code:
    <?php
    ini_set
    ('post_max_size','150M');//Upload up to 150 Megabytes 
    ini_set('upload_max_file_size','150M');//Upload up to 150 Megabytes

  6. #16
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay, sorry. I will give it a try. Also, I don't have a php.ini, the only php page in my server is this scrip that I am running. So what do I do with it if I don't have access to the php.ini.

    On another note, could you explain it in short what it will allow for large video uploads?

  7. #17
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by pssparkman View Post
    Okay, sorry. I will give it a try. Also, I don't have a php.ini, the only php page in my server is this scrip that I am running. So what do I do with it if I don't have access to the php.ini.

    On another note, could you explain it in short what it will allow for large video uploads?
    No, you don't make the changes to php.ini(that is another method to fix this problem). You adjust it right in your script.

    Basically, PHP itself limits the size uploads can be. This is to ease server resources. So, PHP, by default, rejects any files bigger than 8MB(maybe it is 16MB). All we need to do is modify the PHP configuration, and the script should allow larger uploads(though it will take a long time). There is several ways to change the PHP configuration. One is through php.ini(possible on some hosts), another is trhough .htaccess, and the final way is in the PHP script itself. The third method is the one I gave you directions for. Guess that isn't too short of an explanation....

  8. #18
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey as long as the explanation is explained clear enough. Nothing is too long.

  9. #19
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by insanemonkey View Post
    I cant seem to get it working either ill ask jas.. to give me source and see..
    If you still want it, my script is here.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  10. #20
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, I am going to see if it will work with what I need. Is there anyway to incorporate the ftp connection for the large video upload into the script I have here on the first post of this thread? If not, I was just wondering.
    Last edited by pssparkman; 11-07-2007 at 06:19 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •