Ask a Question related to PHP Development, Design and Development.
-
Tim Thorburn #1
[PHP] get current path
Hi,
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:
[url]www.whatever.com/this/page.php[/url] - I'd like PHP to return /this/page.php ...
is that possible and if so, how so?
TIA
-Tim
Tim Thorburn Guest
-
Finding the current path
Octavian Rasnita wrote: Use the standard Cwd module. -
current path
Hello together, how can I find the current path my Perlscript is started ? Jochen -
#25444 [Bgs->Opn]: php4isapi.dll path to win.ini doesn't load from current path.
ID: 25444 User updated by: ict at primus dot ca Reported By: ict at primus dot ca -Status: Bogus +Status: ... -
#25444 [Opn->Bgs]: php4isapi.dll path to win.ini doesn't load from current path.
ID: 25444 Updated by: sniper@php.net Reported By: ict at primus dot ca -Status: Open +Status: Bogus... -
#25444 [NEW]: php4isapi.dll path to win.ini doesn't load from current path.
From: ict at primus dot ca Operating system: W2K PHP version: 4.3.3 PHP Bug Type: *Configuration Issues Bug description: ... -
Mike Migurski #2
Re: [PHP] get current path
>The PHP site seems to be down right now ... so here's the question: Is
PHP site looks up to me, though I have been having intermittent>it possible for PHP to tell me the current path of a page? For example:
>[url]www.whatever.com/this/page.php[/url] - I'd like PHP to return /this/page.php
>... is that possible and if so, how so?
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 [url]http://mike.teczno.com/contact.html[/url]
Mike Migurski Guest



Reply With Quote

