hello agin am back how do i remove evey at the end on a url like... http://www.google.co.uk/#hl=en&output=search&sclient=psy-ab&q=cat&oq=cat&gs_l=hp.3..0l4.1417.1966.0.2642.3.3.0.0.0.0.292.699.2-3.3.0...0.0.O5jDmsat_hQ&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=1deb3a27a4d9b1ab&biw=1366&bih=664 will be...http://www.google.co.ukremoving every thing after the /how do i do this? i can remove everything before like... $site_url = str_replace("http://", "", $site_url);$site_url = str_replace("http://www.", "", $site_url);$site_url = str_replace("https://", "", $site_url);$site_url = str_replace("https://www.", "", $site_url);$site_url = str_replace("www.", "", $site_url); but i need to remove everything after the /how?