First off, thank you for hosting this wonderful forum. I've just found this site, and it was bookmarked immediately. You rule!
Admittedly, I am very new to php (which is why i'm in the beginners forum) so this might be something real easy I'm missing. Anyway, I'm trying to get a file to open using fopen only it's not working. The code I've tried is:
Code:
$op = fopen("./text.txt", "w+");
if(!$op) die ("Cannot open file");
I always get the error. I've tried using fully qualifed paths too, as well as a fully qualified url as a path, nothing seems to work. What are some reasons that fopen wouldn't open a file?