user4fun Posted March 29, 2009 Share Posted March 29, 2009 What are the pros and coms behind using the url to identify the right page to display on the screen. andDpes it get implemented using a switch statment statement? Link to comment Share on other sites More sharing options...
Ingolme Posted March 29, 2009 Share Posted March 29, 2009 I use switch(), normally. The only disadvantage to using that method is having an ugly URL, but people usually use mod_rewrite (Apache module) for that. Link to comment Share on other sites More sharing options...
boen_robot Posted March 29, 2009 Share Posted March 29, 2009 I use a clean URL handler with mod_rewrite, and then just find my way around by manually parsing the single URL argument into the location I want. Not only it appears cleaner in every way, but it will also save you headaches when trying to convert the dirty URL into a nice one, as all the processing logic will be shifted into PHP - a much easier and predictable than .conf files, wouldn't you say? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.