Jump to content

EXEC Function :: answer and win a gold star


mgrayson

Recommended Posts

I'm looking to essentially "fork" a "child php" file, using the exec() function in a "parent php" file...

 

Some Criteria:

(1) Consider parent.php, child.php, $myValue

(2) parent.php passes $myValue to the "forked" child.php

(3) parent.php does not wait on child.php to finish (hence the concept of "forking")

(4) Do not need child.php to return values...output can go to null...child.php runs in the background.

 

Goals

(1) parent.php - proper syntax with exec function given criteria above...

(2) child.php - code to properly "retrieve" the value of $myValue and use in remainder of code...

 

please help in achieving the "Goals" above...feel free to ask for any additional details.  I've been stuck on this one...thanks in advance.

 

MG

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.