<?php $url = 'http://public/protected/private/filename.php'; $url = str_replace(strrchr($url, '/'), '', $url); echo $url;
You have javascript disabled. You will not be able to edit any code.