I want to use test.php to run a php script in the background:
Code: Select all
<?php
exec('/usr/bin/php /pathname/test_exec.php > /dev/null 2>&1 &');
?> Code: Select all
#!/usr/bin/php -q
<?php
mail("to@mail.com","subject","message","From: me@mail.com");
?> I've also redirected the exec output to a text file, and still no error messages or clues as to why this isn't working.
I can do simple statements like:
Code: Select all
exec('ls > results.txt')Any help or clues are appreciated