RussellReal Posted February 17, 2011 Share Posted February 17, 2011 if (!file_exists('../images/flags/imNum.txt')) { $file1 = fopen('../images/flags/imNum.txt','c'); fclose($file1); } why won't that work =\ it makes no sense to me Link to comment https://forums.phpfreaks.com/topic/227950-fopen-not-opening-a-file-in-a-different-folder/ Share on other sites More sharing options...
kenrbnsn Posted February 17, 2011 Share Posted February 17, 2011 Does the process running the script have write privileges for that directory? Ken Link to comment https://forums.phpfreaks.com/topic/227950-fopen-not-opening-a-file-in-a-different-folder/#findComment-1175447 Share on other sites More sharing options...
RussellReal Posted February 17, 2011 Author Share Posted February 17, 2011 yes sir Link to comment https://forums.phpfreaks.com/topic/227950-fopen-not-opening-a-file-in-a-different-folder/#findComment-1175450 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.