Contact: aviboots(AT)netvision.net.il
39,879 questions
51,805 answers
573 users
$url = "http://www.website.com/abc/xyz"; $url = substr($url, 0, strrpos($url, '/')); echo $url; /* run: http://www.website.com/abc */