chris_rulez001 Posted July 24, 2007 Share Posted July 24, 2007 hi, using mkdir() how do i automatically make a index file and a css file. what i really mean is once the directory has been made how do i make it so i have a index and css file there, its just because im making a forum hosting service and i need all the files automatically set up in the directory. how can i do this? Quote Link to comment Share on other sites More sharing options...
chris_rulez001 Posted July 24, 2007 Author Share Posted July 24, 2007 can someone help me please? Quote Link to comment Share on other sites More sharing options...
trq Posted July 24, 2007 Share Posted July 24, 2007 Take a look at fopen and fwrite to create new files, copy to copy files or touch to make a new blank file. Quote Link to comment Share on other sites More sharing options...
chris_rulez001 Posted July 24, 2007 Author Share Posted July 24, 2007 is that the only way of adding it automatically? Quote Link to comment Share on other sites More sharing options...
trq Posted July 24, 2007 Share Posted July 24, 2007 Whats wrong with it? Quote Link to comment Share on other sites More sharing options...
chris_rulez001 Posted July 24, 2007 Author Share Posted July 24, 2007 nothing is wrong with it but im just saying is it the only way of getting the files there automatically? Quote Link to comment Share on other sites More sharing options...
trq Posted July 24, 2007 Share Posted July 24, 2007 Yeah, you'll either need to make new files or copy existing ones. Quote Link to comment Share on other sites More sharing options...
chris_rulez001 Posted July 25, 2007 Author Share Posted July 25, 2007 ok, thanks for your help Quote Link to comment 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.