I currently have a php script that is running when a browser browser browses to the webpage. What I\'m trying to do is write a text file when the script runs that stores a v
Have you tried chmodding the directory to 777?
777
Try this:
if(file_put_contents('file.txt', 'text')){ die('yes'); } else { die('no'); }
Might of misspelled something. ^