mgrayson Posted November 9, 2007 Share Posted November 9, 2007 I want to pass a value to a php file I'm exec'ing. Parent File has myValue= 100; exec("/usr/bin/php ./child.php?myVariable=$value > /dev/null 2>&1 &"); Child File ReceivedValue = $_REQUEST['myVariable']; Child File is not obtaining the value...am I not passing the argument correctly? Is there a better way to ship/receive arguments in this scenario? Thanks, mgrayson Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 9, 2007 Share Posted November 9, 2007 $ReceivedValue = $_GET['argv1']; Quote Link to comment Share on other sites More sharing options...
Daleeburg Posted November 9, 2007 Share Posted November 9, 2007 try ReceivedValue = $_GET['myVariable']; Quote Link to comment Share on other sites More sharing options...
mgrayson Posted November 9, 2007 Author Share Posted November 9, 2007 Checking my exec statement again.... exec("/usr/bin/php ./child.php?myVariable=$myValue > /dev/null 2>&1 &"); Should I try to pass the $myValue above differently? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.