omardealo
11-13-2014, 01:29 PM
hello ,
how i get current page url without stylid=2 if it exist in the link
.../index.php?styleid=2
i try this code :
$url = explode('?', $vbulletin->url, 2);
// output $url[0]
it is work but some pages Does not contain ?styleid and contain &styleid
--------------- Added 1415898889 at 1415898889 ---------------
Solution :
$fullurl = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url = explode('?', $fullurl , 2);
// output $url[0]
how i get current page url without stylid=2 if it exist in the link
.../index.php?styleid=2
i try this code :
$url = explode('?', $vbulletin->url, 2);
// output $url[0]
it is work but some pages Does not contain ?styleid and contain &styleid
--------------- Added 1415898889 at 1415898889 ---------------
Solution :
$fullurl = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url = explode('?', $fullurl , 2);
// output $url[0]