GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Whats the php include code that shows... (https://gfy.com/showthread.php?t=544935)

xlogger 11-26-2005 11:02 PM

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

jMEGA 11-26-2005 11:05 PM

$_server['php_self']

BoyAlley 11-26-2005 11:09 PM

All this geeky tech talk makes me hard...

xlogger 11-26-2005 11:10 PM

Quote:

Originally Posted by jMEGA
$_server['php_self']

Nice, this works. :thumbsup

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

xlogger 11-26-2005 11:10 PM

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.

BoyAlley 11-26-2005 11:13 PM

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++ :thumbsup

V_RocKs 11-26-2005 11:16 PM

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.

xlogger 11-26-2005 11:22 PM

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! :thumbsup

xlogger 11-26-2005 11:41 PM

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

V_RocKs 11-27-2005 04:47 AM

Nice to see another brother taking a back end dive into programming his own shit ;)

com 11-27-2005 04:49 AM

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++ :thumbsup

and this is why we are teh win! OOP IS POOP!

studiocritic 11-27-2005 04:52 AM

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.

darksoul 11-27-2005 04:52 AM

Code:

System.out.print(Com.FormatMsg("No Shit!"));

studiocritic 11-27-2005 05:19 AM

Quote:

Originally Posted by darksoul
Code:

System.out.print(Com.FormatMsg("No Shit!"));

may you burn in hell for that.


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