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 Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.