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 ? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/205076-url-reading/#findComment-1073560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.