Re: Current web page being displayed

From: Date: Sun, 07 Aug 2005 06:49:02 +0000
Subject: Re: Current web page being displayed
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-40039@lists.php.net to get a copy of this message
Or you can do the one show below M Saleh EG wrote:
lol... print_r($_SERVER); would be enough to show you all the server array tags. On 8/7/05, *Shahmat Dahlan* <shahmatd@sains.com.my <mailto:shahmatd@sains.com.my>> wrote:
    You can try
    foreach ($_SERVER as $key => $value)
       echo "$key => $value";
    or you can check out them out in when calling phpinfo ();
    RaJeSh VeNkAtA wrote:
hai ..
    if u r seeing http://www.google.com/blog/myblog.php
then
    $_SERVER[SERVER_NAME] would give u www.google.com
    <http://www.google.com>
and
    $_SERVER[PHP_SELF] would give u /blog/myblog.php
for details just print the array $_SERVER and see it .. On Sat, 6 Aug 2005, Ron Piggott wrote:
What is the correct $_SERVER that tells me what page is
    currently being
displayed? Ron
    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
-- M.Saleh.E.G 97150-4779817

« previous php.db (#40039) next »