physaux Posted November 3, 2009 Share Posted November 3, 2009 Why am I getting this error with fopen("../folder/file.txt", "w")? I thought fopen creates a new file, right? Link to comment https://forums.phpfreaks.com/topic/180165-solved-warning-fopenfolderfiletxt-functionfopen-failed-to-open-stream-no-su/ Share on other sites More sharing options...
marcus Posted November 3, 2009 Share Posted November 3, 2009 It will attempt to create the file, try using the full path to that folder. Link to comment https://forums.phpfreaks.com/topic/180165-solved-warning-fopenfolderfiletxt-functionfopen-failed-to-open-stream-no-su/#findComment-950419 Share on other sites More sharing options...
physaux Posted November 3, 2009 Author Share Posted November 3, 2009 ahh I think I got it, i put "../" Because thats where the folder was relative to this file but this file is included in a deeper file, so for it I have to change it to "../../" Thanks anyways!! Link to comment https://forums.phpfreaks.com/topic/180165-solved-warning-fopenfolderfiletxt-functionfopen-failed-to-open-stream-no-su/#findComment-950425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.