Jump to content

[SOLVED] Simple EXEC fork question...


rckehoe

Recommended Posts

I have a script, that works just fine... It executes the php file that I want it to... I just have a simple question that I cannot find an answer for anywhere!

 

How do I access the variables that I pass through the exec function? My code is below... When the fork_blast.php page is executed, how do I get the variable there? I want to pass a user ID to this page, because it is going to perform a lengthy task... how do I access the $UserID

 

 

$PATH=$_SERVER['DOCUMENT_ROOT'];

exec ("/usr/bin/php ".$PATH."/fork_blast.php \"".$UserID."\" >/dev/null &");

Link to comment
https://forums.phpfreaks.com/topic/157401-solved-simple-exec-fork-question/
Share on other sites

  • 4 months later...

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.