You may be wondering when you sign up to social networking website you are allow to have possession of your own pages within their server and have your own directories under their main directory such as www.facebook.com/User, the User is a folder automatically creates for you and other sub directories within; under their domain or server. Similarly all Content Management Systems use the technique I am showing you today, also the web hosting company use the same magic. Once you registered a domain name, your chosen domain name is your main folder name, then you can have as many as other sub folders and directories in them. Today I am showing how to automatically create the basic and standard folders and file for a standard web application, so we will automatically creates Main Folder and index page , and further creates sub folders with index page in them automatically. I am using php mkdir() and tempfile_postfix() function. At the end of the tutorial we will have automatically creates Main Folder, Image Folder, Css Folder, Java Folder, Inc Folder for php server-side scripting language. In next tutorial I will show you how to write individually into the files and create more files into those folders. Thanks for watching. Dego Front End Developer www.dego-evision.com
No comments:
Post a Comment