On my ubuntu server I have Apache and PHP and all that nessory stuffs.. but when I run a php file
<?php if(!file_put_contents('/var/www/myfiles/folder/data/new_rewrite/531e5c5d1e16c3eae28b1489cd34ccb30','qwe')) echo 'error'; else echo 'ok';
I got "ERROR" always.
First I tried sudo chmod -R 775 /data then sudo chmod -R 777 /dir....... or change the owner or group to my Apache user (www-data)
But what ever I do I get the same result again and again.. So I looked on LOG!
[Sat Aug 2013] [error] [client 126.96.36.199] PHP Warning: file_put_contents(/var/www/myfiles/folder/data/new_rewrite/531e5c5d1e16c3eae28b1489cd34ccb30): failed to open stream: No such file or directory in /var/www/myfiles/folder/test.php on line 2
I found this.. I didn't get it what is the problem is please help me..