Home >Backend Development >PHP Tutorial >PHP class for handling nice and neat URLs such as http://www.huiff.com/archives/136
It avoids the disadvantage of using txt.php?page=** to pass parameters, because that is not friendly to search engines. Use / to separate parameters, which is beautiful and easy for search engines to crawl! Example: http://www.huiff.com/RequestPath.class.php/edit/trackbacks/page/2/flag/4 action use $url->__get('action'); to get type use $ url->__get('type'); Get (the above two are the default) The remaining parameters, the first one is the parameter name, the last one is the parameter value The value of $url->__get('page') is 2 The value of url->__get('flag') is 4 |