Using exec to run a PHP script from another PHP script is not working properly (yes I fully qualified everything) -
for may find in future
$test = exec("echo . | /usr/local/bin/php /usr/www/test123.php");
echo $test;
echo period , pipe php. works perfectly, not sure why though.
i know has been asked here before...but read through of them , attempted solutions.
-------test123.php--------
echo "this better work";
-------test.php---------
$test = exec("/usr/local/bin/php /usr/www/test123.php");
echo print_r($test);
when load test123.php echos "this better work". when use exec hangs. looked @ processes , looks if starts 3 test123.php scripts. there missing?
Comments
Post a Comment