Hi and I have learned 2 ways of making a php cms both with simular results on the client side. That is, is it best to have all pages pointed to index.php with mod rewrite and url vars or is it best to have a couple dozen php files each including the styles. Previously I have just placed all my code into the index.php and used mod rewrite to send all url requests to index.php but am now thinking that it might be better to have a login.php and logout.php etc. Which of this techniques do you think is best?
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Recommended Answers
Jump to PostI use a mixture of both. Kind of.
All my calls a centralized around index.php. My url rewrite changes urls like http://www.mysite.com/page/index to index.php?url=page/index. Then my url class grabs $_GET and process it.
My page class loads the proper page from my php folder hidden …
Jump to PostHere are the files from my current project so you can see how it works. Its easier to show you than explain.
All 5 Replies
somedude3488
228
Nearly a Posting Virtuoso
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
somedude3488
228
Nearly a Posting Virtuoso
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
somedude3488
228
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.