在建立一套可贵的建议?
- Making a htaccess dynamically create the pages based on ?pg=name or
- Making a FTP connection to auto create each file on the fly? This means when a new page is created/edited/deleted the admin, when saved, would ftp into the site and create the page.
Pros and Cons
- "Pro" Less files means less space
- "Con" More continually overhead for apache to redirect
- "Con" More space taken
- "Pro" Less work to find file sense its created and only once loaded when changed
ALright,让我澄清。 这是更好的选择。
- create index.php and have all htaccess redirect to it sending ?pg=name and then get the content from database
- have an admin automatically ftp into a site when content is created/edited/delete and create the page so when the person types the page in its hard coded