mikelmao Posted April 21, 2009 Share Posted April 21, 2009 Hello, I want to Create a Directory with the fopen function, But it keeps saying that the directory doesnt exist... It doesnt because it needs to create one... How do i let it create a directory and create a File in that Directory Quote Link to comment https://forums.phpfreaks.com/topic/155053-fopen-creating-directory-and-file/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 21, 2009 Share Posted April 21, 2009 Your code must make directories before it can create files in them - http://php.net/mkdir Quote Link to comment https://forums.phpfreaks.com/topic/155053-fopen-creating-directory-and-file/#findComment-815502 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.