When i trie to run a script in the background, the browser is waiting for a reply, how do i avoid this in winXP?

The code look like this:
$phpPath = "C:\PHP\php.exe";
$command = "C:\systemet\prototyp11_admin\class.SendToQue.php do=sendInactive";
$execute = $phpPath . " " . $command;

exec($execute);

    I don't understand your question. That script has nothing to do with the browser, it's running the script from the command line, which ouputs to the prompt window thingy. No browser in that equation.

    If your aim is to make the server display the page in the browser... try something more like this:

    $browserPath = "C:\path\to\browser\IExplorer.exe";
    $command = "http:\localhost\path\to\file\class.SendToQue.php";

    I hope that helps.

      I think I know what he means - he's kicking off the script with explorer in the first place.

      Well basically in the program put

      ignore_user_abort(true) at the very start, then close the window after you kick it off. You can't telly it to close the connection with the window and keep running. You used to be able to with some register shutdown function mucking about, but not anymore - unless things have changed again.

      If they have, please fess up, as I'd love to be able to say "Shut the window - have a fag and a cup of tea and I'll do this, right love?" without pumping out a fake html comment and flushing for IE users benefit.

        Write a Reply...