How to extract $_SERVER['REQUEST_URL'] from given url
for example
$url = 'http://localhost/application_dir/';
extract requested url from $url;
|
How to extract for example
extract requested url from |
||||
Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
parse url is commonly used
if you wan't to extract path parameter from the output you can do as follow:
|
|||||||
|
REQUEST_URI(not_URL). – w3d Sep 18 '12 at 11:03