I am running PHP 5.5.9 on Ubuntu 14.04. I\'m having trouble writing to a file. I feel like this has to be a file permissions problem because I\'m pretty sure the code is cor
Try giving the absolute path and the filename with open:
open
$file = '/html/Projects/MD_ScrapingTool/files/filetest.txt';
If the file does not exist, fopen should create the file with 'w' mode.
fopen
'w'