[ create a new paste ] login | about

Link: http://codepad.org/C3xBg4CI    [ raw code | output | fork ]

PHP, pasted on Oct 4:
1
2
3
4
5
6
7
<?php

$url = "http://domain.com/index.php/something/else/entirely";

echo substr($url, strpos($url,'index.php')+10);

?>


Output:
1
something/else/entirely


Create a new paste based on this one


Comments: