This is the code that im using for clear any queries in my url..
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$pageURL = substr( $pageURL, 0, strrpos( $pageURL, "?"));
}
return $pageURL;
}
?>
this clears
result is
Its done….but the thing it when its come with normal URL
The result is EMPLTY,NO RESULT !
BUT i want as it is..
no change..
i want the result normall url as it is…
Thank You!
strrpos returns
FALSEif the search string wasn’t found.or