Welcome to WebmasterWorld Guest from 126.96.36.199
To run the script I enter [localhost...] - but after a few minutes the script times out. So I've adjusted the script so that after it has finished one iteration it does a page redirect - back to itself (so the script runs again). But after a fw minutes its times out again.
Could someone shed some light for me onto whats going on here - e.g. why it keeps stopping. Thanks.
PM me if you need more help.
might need the full path to php:
On Windows it'd probably something like
Now if you have anything in the query string, for example
, that wouldn't work on the command line. Instead you can do this:
C:\path\to\php scriptname.php "1234" "blue"
and in the script:
$id = $_SERVER["argv"];
$color = $_SERVER["argv"];
One last thing - how do I redirect from one script to another using the command line?
E.g. in my script I could have: