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? Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/ Share on other sites More sharing options...
chris_rulez001 Posted July 24, 2007 Author Share Posted July 24, 2007 can someone help me please? Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306730 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. Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306733 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? Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306738 Share on other sites More sharing options...
trq Posted July 24, 2007 Share Posted July 24, 2007 Whats wrong with it? Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306740 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? Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306749 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. Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-306750 Share on other sites More sharing options...
chris_rulez001 Posted July 25, 2007 Author Share Posted July 25, 2007 ok, thanks for your help Link to comment https://forums.phpfreaks.com/topic/61612-solved-mkdir-question/#findComment-307113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.