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