Results 1 to 3 of 3

Thread: [RESOLVED] Waiting for localhost

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Resolved [RESOLVED] Waiting for localhost

    Hi,

    I've been testing my flash website that uses php in phpdev and WAMP Sever. However, for some reason after submitting the details for a new customer or to log-in the data doesn't get sent to the database and in the status bar of the browser it has "Waiting for localhost...".

    If I run the script to create the database I don't receive the "Waiting for localhost..." message and the data gets sent to the database.

    What could be the problem? I have checked the code and it appears to be in order.

    Thanks,


    Nightwalker
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  2. #2
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: Waiting for localhost

    This usually happens when PHP gets stuck in a loop, or gets stuck somewhere.

    Check out Set Time Limit by placing it at the start of the script (before anything) and see if it times out.

    You could also get it to echo stuff to the screen every step of the way.

    Should also try this:

    PHP Code:
    error_reporting (E_ERROR E_WARNING E_PARSE E_NOTICE); 

  3. #3

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Waiting for localhost

    Where would I put that in the *.php files or in the php.ini?

    Also, I have never had the problem with the script before! On Monday they were working fine.

    I tried the time_limit code:

    PHP Code:
    set_time_limit(2);

    ob_start();     // buffer output

    function shutdown () {
        
    // print only first 2000 characters of output
        
    $out ob_get_clean();
        print 
    substr($out02000);
    }

    register_shutdown_function('shutdown'); 
    However, the problem still occurs!

    I need a way of testing the scripts and seeing the output on the screen when the scripts are running.

    Edit:

    The data now gets submitted to the database! In some scripts I had a double up of the same variables possibly because of adding the "mysql_escape string" to the code.
    Last edited by Nightwalker83; Oct 16th, 2009 at 12:11 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

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



Click Here to Expand Forum to Full Width