Re: [PHP-DB] Current web page being displayed

2005-08-07 Thread Shahmat Dahlan
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 and

Re: [PHP-DB] Current web page being displayed

2005-08-07 Thread Shahmat Dahlan
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* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can try foreach ($_SERVER as $key = $value) echo $key =

Re: [PHP-DB] Current web page being displayed

2005-08-07 Thread Matthew Weier O'Phinney
* RaJeSh VeNkAtA [EMAIL PROTECTED] : hai .. if u r seeing http://www.google.com/blog/myblog.php then $_SERVER[SERVER_NAME] would give u www.google.com and $_SERVER[PHP_SELF] would give u /blog/myblog.php PHP_SELF also gives the PATH_INFO and QUERY_STRING of the script,