hello i have a php file which duos some number crunching and gets called from a different php file like this
$exc = "nohup nice php -f " . PATH . "/download.phtml $data $data1 $data 1>/dev/null & echo $!";
In that file i have a file_put_contents function call like this
if(file_put_contents(PATH."/tmp/generated/".$queue->output_value, $data)){
$queue->saveData();
}else{
// write down the file path
}
And all works great on my test rig. But as usual when i put it on the live rig it fails... the file write fails.
I double and triple checked the path is 100% correct and the folder in which the write should be is set to 777(just to get it working) But still no lunch fail write fails...
I heard about umask but im not sure if tht works over shell executed comands....
Suggestions are welcome.
ps. The working rig is Debian.