I've got an update script that runs 3 times a day. The one php file call others with exec():


exec("/usr/bin/php -q home/public_html/update1.php");
exec("/usr/bin/php -q home/public_html/update2.php");


but if I try running one with a parameter:

exec("/usr/bin/php -q home/public_html/update1.php?action=dodo");

It doesn't work. I'm not too familar with UNIX command line use (or Unix at all), but I'm assuming the ? is causing problems.

Any of you Unix gurus know a work around for this? Thanks.