I'm trying to call a PHP page to run when called from another page. To do this it seems i have to use the exec() function. The code would go something like
Running this code and few variations of it give me either empty $result and $output vars or this
// set pathing
$file = 'TEXT_small.m4v';
$localfile = '/user/dac420/incoming/'.$file;
$remotefolder = '/user/dac420/outgoing/';
// exec the file and pass vars. transfer.php for this example just echo's Hi to the motherboard.
exec('php transfer.php '.$localfile.' '.$remotefolder.' > '.$file.' &', $output, $result);
I have Googled "php exec" (and others) but I have come up with few reference. If someone can shed some light on this function or tell me where im wrong in my code i would appreciate it. Thanks.
 => Status: 404
 => Content-type: text/html
 => X-Powered-By: PHP/4.3.9
 => No input file specified.