https ://example.com/content-1373212886/page/6?currentScore=2&totalQuestions=5
https ://example.com/content-9273286/page/13?currentScore=8&totalQuestions=12
bunun page'den önceki kısmını almak istiyorum. yani şu kısmını https://example.com/content-1373212886/
kodu kopyala yapıştır ilerlettim ama bir türlü pageden önceki kısmı alamadım.
<?php if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $url = "https://"; else $url = "http://"; // Append the host(domain name, ip) to the URL. $url.= $_SERVER['HTTP_HOST']; // Append the requested resource location to the URL $url.= $_SERVER['REQUEST_URI']; echo "$url"; ?>