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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-26-2005, 11:02 PM   #1
xlogger
Confirmed User
 
Join Date: Jul 2004
Location: NY
Posts: 9,507
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.
__________________

----------
XLOGGER [REFLECTED] [OH]
xlogger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:05 PM   #2
jMEGA
Confirmed User
 
Join Date: Oct 2005
Location: St. Louis, MO
Posts: 671
$_server['php_self']
jMEGA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:09 PM   #3
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
All this geeky tech talk makes me hard...
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:10 PM   #4
xlogger
Confirmed User
 
Join Date: Jul 2004
Location: NY
Posts: 9,507
Quote:
Originally Posted by jMEGA
$_server['php_self']
Nice, this works.

<?php echo $_SERVER['PHP_SELF'] ?>
__________________

----------
XLOGGER [REFLECTED] [OH]
xlogger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:10 PM   #5
xlogger
Confirmed User
 
Join Date: Jul 2004
Location: NY
Posts: 9,507
Quote:
Originally Posted by BoyAlley
All this geeky tech talk makes me hard...
well, im actually learning this. You try it, its hard as hell.
__________________

----------
XLOGGER [REFLECTED] [OH]
xlogger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:13 PM   #6
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by xlogger
well, im actually learning this. You try it, its hard as hell.
Ya I know. I was a geeky programmer for the pentagon in my former life. Wait until you start doing C++
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:16 PM   #7
V_RocKs
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(); ?>
inside it.

Next open it in a browser and scroll down to the bottom.

All of the $_SERVER["$variables"] are there.
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:22 PM   #8
xlogger
Confirmed User
 
Join Date: Jul 2004
Location: NY
Posts: 9,507
Quote:
Originally Posted by V_RocKs
Next time create a file called php.php and put
Code:
<? phpinfo(); ?>
inside it.

Next open it in a browser and scroll down to the bottom.

All of the $_SERVER["$variables"] are there.
Nice, it shows the php variables!
__________________

----------
XLOGGER [REFLECTED] [OH]
xlogger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2005, 11:41 PM   #9
xlogger
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"

__________________

----------
XLOGGER [REFLECTED] [OH]

Last edited by xlogger; 11-26-2005 at 11:42 PM..
xlogger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2005, 04:47 AM   #10
V_RocKs
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 ;)
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2005, 04:49 AM   #11
com
Confirmed User
 
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
Quote:
Originally Posted by BoyAlley
Ya I know. I was a geeky programmer for the pentagon in my former life. Wait until you start doing C++
and this is why we are teh win! OOP IS POOP!
__________________

Real. Professional. Hosting.
.:Expect Nothing Less:.
320-078-843 :: www.realprohosting.com :: [email protected]
com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2005, 04:52 AM   #12
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
Quote:
Originally Posted by com
and this is why we are teh win! OOP IS POOP!
you're my new hero.. fuck oop. procedural will work for the next decades as it did the last.
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2005, 04:52 AM   #13
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Code:
System.out.print(Com.FormatMsg("No Shit!"));
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2005, 05:19 AM   #14
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
Quote:
Originally Posted by darksoul
Code:
System.out.print(Com.FormatMsg("No Shit!"));
may you burn in hell for that.
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.