Page expire

Discussion in 'PHP' started by gigamike, Dec 8, 2006.

  1. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #21
    okay then last idea would be try changing the timeout value of the browse you'r using can be found in about:config in Firefox and for IE ( MS NT+ ) : support.microsoft.com/kb/813827
     
    krakjoe, Dec 8, 2006 IP
  2. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #22
    Guys,

    please help me, still no luck. Everytime i upload a 10MB or greater, page expire but less 2 mb, i was able to upload.


    Im using windows 2003 server with php and apache install. I already set the ff. to apache.ini

    memory_limit=200M
    upload_max_filesize=200M
    post_max_size=400M
    max_execution_time=3600

    and restarted the apache.


    I have only 2 files. 1 the form.php and upload.php

    form.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>

    <body>
    <form action="upload.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
    <label>
    <input name="uploadedfile" type="file" id="uploadedfile" />
    </label>
    <label>
    <input type="submit" name="Submit" value="Submit" />
    </label>
    </form>
    </body>
    </html>


    upload.php
    <?php
    $target_path = "../upvideos/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".$target_path. basename( $_FILES['uploadedfile']['name']).
    " has been uploaded";
    } else{
    echo "There was an error uploading the file, please try again!";
    }

    ?>



    Any ideas why my page expire ?

    Thanks,

    mike :(
     
    gigamike, Dec 11, 2006 IP
  3. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #23
    At the top of the upload.php, try putting
    echo "Test";
    PHP:
    , then if test appears on your browser, you will know that the cript has started to execute.
     
    matthewrobertbell, Dec 11, 2006 IP
  4. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #24
    hi matt,

    thanks for helping me again. I tried but it didnt echoed. I try to upload 60mb but the page expire after 3-4 mins. But when i upload smaller file, i was able to see the echo And i also echo echo "The file ".$target_path. basename( $_FILES['uploadedfile']['name']). " has been uploaded";

    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".$target_path. basename( $_FILES['uploadedfile']['name']).
    " has been uploaded";
    } else{
    echo "There was an error uploading the file, please try again!";
    }


     
    gigamike, Dec 11, 2006 IP
  5. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Maybe try a different / newer version of apache? That's all I can really think of.
     
    matthewrobertbell, Dec 11, 2006 IP
  6. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #26
    I already installed apache 2 in the windows 2003 server. We already did twice installing apache, but i guess youre right, the apache is going crazy over the windows. A dialogue box prompting at me...i forgot on how to show that again, but i check the event viewer application


    Faulting application Apache.exe, version 2.0.59.200, faulting module libhttpd.dll, version 2.0.59.200, fault address 0x0001c022.

     
    gigamike, Dec 11, 2006 IP