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 Link to comment https://forums.phpfreaks.com/topic/76658-simple-exec-question/ Share on other sites More sharing options...
ToonMariner Posted November 9, 2007 Share Posted November 9, 2007 $ReceivedValue = $_GET['argv1']; Link to comment https://forums.phpfreaks.com/topic/76658-simple-exec-question/#findComment-388116 Share on other sites More sharing options...
Daleeburg Posted November 9, 2007 Share Posted November 9, 2007 try ReceivedValue = $_GET['myVariable']; Link to comment https://forums.phpfreaks.com/topic/76658-simple-exec-question/#findComment-388118 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? Link to comment https://forums.phpfreaks.com/topic/76658-simple-exec-question/#findComment-388141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.