![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jul 2004
Location: NY
Posts: 9,507
|
![]() ...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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2005
Location: St. Louis, MO
Posts: 671
|
$_server['php_self']
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
All this geeky tech talk makes me hard...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Jul 2004
Location: NY
Posts: 9,507
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jul 2004
Location: NY
Posts: 9,507
|
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"... ![]() but with REQUEST_URI it will shows the whole thing - "sample.php?=out.html" ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
Nice to see another brother taking a back end dive into programming his own shit ;)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
|
Quote:
__________________
Real. Professional. Hosting. .:Expect Nothing Less:. 320-078-843 :: www.realprohosting.com :: [email protected] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
|
Quote:
__________________
254342256
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
|
Quote:
__________________
254342256
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |