T0PS3O
Oct 28th 2004, 10:15 am
My script keeps timing out so I am hoping to make it run in the background.
I submit a form to a page which says this:
$url_to_grab = $_POST['url'];
$page_count = $_POST['pagecount'];
$shop_id = $_POST['shopid'];
exec("php bg_script.php?url=$url_to_grab&page_count=$page_count&shop_id=$shop_id &");
Then in the backgound script it says this:
$url_to_grab = $_GET['url'];
$page_count = $_GET['pagecount'];
$shop_id = $_GET['shopid'];
and starts performing some stuff.
But it doesn't.
I guess I either have the exec command wrong (couldn't find ANYwhere how to pass variables) or the $_GET won't work.
Any help would be appreciated, thank you. My gut feeling is that I'm miles off... Perhaps exec should have been system() :confused:
BTW running PHP 4.3.1 on FreeBSD 4.8-STABLE
I submit a form to a page which says this:
$url_to_grab = $_POST['url'];
$page_count = $_POST['pagecount'];
$shop_id = $_POST['shopid'];
exec("php bg_script.php?url=$url_to_grab&page_count=$page_count&shop_id=$shop_id &");
Then in the backgound script it says this:
$url_to_grab = $_GET['url'];
$page_count = $_GET['pagecount'];
$shop_id = $_GET['shopid'];
and starts performing some stuff.
But it doesn't.
I guess I either have the exec command wrong (couldn't find ANYwhere how to pass variables) or the $_GET won't work.
Any help would be appreciated, thank you. My gut feeling is that I'm miles off... Perhaps exec should have been system() :confused:
BTW running PHP 4.3.1 on FreeBSD 4.8-STABLE