I am currently working on a project that writes to a file based on your input. This works perfectly fine on my localhost, but when I try this project on my college server - it just doesn't work.
$ret = file_put_contents('paameldinger.dat', $data, FILE_APPEND | LOCK_EX);
This line is supposted to return true, but returns false on the college server.
Warning: file_put_contents(paameldinger.dat): failed to open stream: Permission denied
This is the message I am getting through my browser.