Jump to content

Simple Exec Question


mgrayson

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.