Re: get current path

From: Date: Mon, 18 Aug 2003 02:47:43 +0000
Subject: Re: get current path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159886@lists.php.net to get a copy of this message
>The PHP site seems to be down right now ... so here's the question: Is >it possible for PHP to tell me the current path of a page? For example: >www.whatever.com/this/page.php - I'd like PHP to return /this/page.php >... is that possible and if so, how so? PHP site looks up to me, though I have been having intermittent difficulties recently with one of the servers - us4 I think. To get the current path of the page or other webserver-related environmental informatio, check the contents of the $_SERVER superglobal and all will be revealed. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#159886) next »