KBD

Keith Devens .com

Friday, March 19, 2010 Flag waving
A charlatan makes obscure what is clear; a thinker makes clear what is obscure. – Hugh Kingsmill
← Longhorn's Monad ShellJava 5.0? →

Daily link icon Sunday, July 4, 2004

Relationship between $PHP_SELF, $SCRIPT_NAME, and $PATH_INFO

I always forget this, so now while I think I have it right I'm posting it:

$_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];

← Longhorn's Monad ShellJava 5.0? →

Comments XML gif

Nathaniel (http://www.thornvalley.com) wrote:

Uh... Isn't it the other way around (PATH_INFO first)? Speaking of which... (checks the PHP docs) I don't see PATH_INFO as one of the $_SERVER variables listed (and phpinfo() running on my server seems to confirm this).

Maybe it's just me, though. Smiley 'oh well'

∴ Nathaniel | 5-Jul-2004 7:28pm est | http://www.thornvalley.com | #4927

Nathaniel (http://www.thornvalley.com) wrote:

Oops... I suppose I should post the URL to that documentation.

http://www.php.net/manual/en/reserved.variables.php

∴ Nathaniel | 5-Jul-2004 7:31pm est | http://www.thornvalley.com | #4928

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.105s.

(Used 8 db queries)