<?php $url = "localhost/ccp/index"; $sbstr = substr($url, -6); echo($sbstr . "<br>"); if ($sbstr == "/index") $url = substr($url, 0, strlen($url) - 6); ?>
You have javascript disabled. You will not be able to edit any code.