I have a simple need to execute a "server side" / "non http facing" php script to generate an encrypted HASH that can be used by multiple scripts. My problem is that I can't seem to figure out the PHP exec command to get this accomplished.
I've tried five different formats suggested by multiple threads on StackOverflow, and none see to pass back a result, and nearly half of them freeze the browser with no output pipe.
I don't understand how to do ARGs nor the method of which order execution parameters go inside the exec() command. Here are my variables:
$filename = "/home/me/serverside_scripts/myScript.php";
$options = "value=999"; // I've also tried the Array('value' => 99) to avail
myScript is returning a JSON string that needs to be decoded, so all I want back is a STRING, or an array with a [0] equaling a string.
What do the > && 2>&1 mean?
The reason I'm using the exec() is to test the results, because this script will be executed by Java scripts (NOT JavaScript) as well.
Thanks for you help!