I want to retrieve
http://www.mysite.com/directory/page.php
just directory/page.php
How do I do that?
http://www.mysite.com/directory/page.php
just directory/page.php
How do I do that?
<?php
/**
code owner: Rahul Sinha
contact : [email]rahul@zimaudio.com/rahulazm@gmail.com[/email]
**/
$str='http://www.mysite.com/directory/page.php';
$arr = explode("com/",$str);
echo $arr[1]; // prints directory/page.php
?>
Comment