![]() |
Whats the php include code that shows...
...what url the surfer is currently on.
I know for shtml its <!--#echo var="REQUEST_URI" --> but what is it for php? Help me out. :thumbsup |
$_server['php_self']
|
All this geeky tech talk makes me hard...
|
Quote:
<?php echo $_SERVER['PHP_SELF'] ?> |
Quote:
|
Quote:
|
Next time create a file called php.php and put
Code:
<? phpinfo(); ?> Next open it in a browser and scroll down to the bottom. All of the $_SERVER["$variables"] are there. |
Quote:
|
Actually, $_SERVER['REQUEST_URI'] works better then $_SERVER['PHP_SELF']
Lets say my page is sample.php?=out.html With the PHP_SELF it will only shows "sample.php"... http://img385.imageshack.us/img385/4879/xlogger25qs.jpg but with REQUEST_URI it will shows the whole thing - "sample.php?=out.html" http://img385.imageshack.us/img385/9816/xlogger9ur.jpg |
Nice to see another brother taking a back end dive into programming his own shit ;)
|
Quote:
|
Quote:
|
Code:
System.out.print(Com.FormatMsg("No Shit!")); |
Quote:
|
All times are GMT -7. The time now is 10:20 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123