Posted by raju_sykam on 12/22/05 10:41
<?
$url= $_SERVER['PHP_SELF']; //gives you url
$userid=strrchr($url,"/"); // gives u /1234
$userid=substr($file,1); // gives u 1234 by eliminating /
/* i think u got it */
?>
<?php
echo $_SERVER['HTTP_HOST']; //outputs sitename.com etc
echo $_SERVER['REQUEST_URI']; //outputs /index.php etc
?>
Navigation:
[Reply to this message]
|