error 404 instead of an error message.

Discussion in 'PHP' started by mahmood, May 28, 2006.

  1. #1
    How come I get "page not find" error instead of an error message or nothing at all?

    For example I am trying to read a huge text file into a database so it takes about 20 minutes, at the end I get error 404 so I can't get if it is finished OK or not.

    I undrestand that for security reasons PHP might not give a clear error message but page 404 is something completely unrelated.
     
    mahmood, May 28, 2006 IP
    Will.Spencer likes this.
  2. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That is timing out, not an error. If you have 20 minute imports, you'd be much better off breaking the file up or doing it via SSH shell on the command line.
     
    TheHoff, May 28, 2006 IP
    mahmood likes this.
  3. PinoyIto

    PinoyIto Notable Member

    Messages:
    5,863
    Likes Received:
    170
    Best Answers:
    0
    Trophy Points:
    260
    #3
    Try to put set_time_limit(0); after <?php of your code this may help
     
    PinoyIto, May 28, 2006 IP