I know you can create databases from a form. However, How would I go about creating a form that can create a folders and pages. I would like to request a simple example that I can work off from there.
You can do this by placing any WYSIWYG editor rather then textarea, simply you have to declare a table fields Page ID Title Body Created Date Author Push the date from form to that table, and where you want you can display, also you can edit/delete/update the page with Page ID.
Are you talking about editing pages as pukhtoogle described? I got the impression you were talking about generating actual folders & files, if so here are examples: Make a folder: mkdir("/path/to/my/dir", 0700); Obviously you could replace the path with a variable which could be collection from a form, and the numbers are the folder permissions. Make a file: $fh = fopen($filename, 'w') or die("can't open file"); fwrite($fh, $contents); fclose($fh); Set variables for filename and contents, obviously filename being the name of the file and contents being whats contained in it.
ok, I understand the mkdir and I got it working. However, the part I that I am having difficulty with is the page creation. I am trying to create a form that once the information is submitted it creates the dir and than numerous other pages such as index.html pretty much launching a template site that the creator can go back and alter, but thats another story.
second above, post your code maybe we can help. file creation is typically pretty straight forward in php.