Forum Moderators: coopster
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.
php scriptname.php might need the full path to php:
/path/to/php scriptname.php On Windows it'd probably something like
C:\path\to\php scriptname.php Now if you have anything in the query string, for example
scriptname.php?id=1234&color=blue, 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"][1]; $color = $_SERVER["argv"][2]; ?>
[us3.php.net...]