Zaidejas1324 Posted June 17, 2010 Share Posted June 17, 2010 I need a script which will read the url. So there should be a condition which would work like this: If( url = example.com/page ){ echo"page";} else if( url =/admin ) {echo"admin";} How can i make it work ? Link to comment https://forums.phpfreaks.com/topic/205076-url-reading/ Share on other sites More sharing options...
vbnullchar Posted June 17, 2010 Share Posted June 17, 2010 http://php.net/manual/en/function.parse-url.php Link to comment https://forums.phpfreaks.com/topic/205076-url-reading/#findComment-1073560 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.