Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [Dan Kaplan] why add 'do=page' to links?

Quote Reply
Re: [Dan Kaplan] why add 'do=page' to links? In reply to
In Reply To:
I haven't tested it, but I thought $PHP_SELF would be undefined with register_globals turned off?
? $php_self != $PHP_SELF. $HTTP_SERVER_VARS['PHP_SELF'] isn't just 'page.php', it's the path to page.php as well as any paths after it. For example, if page.php is in /stuff/, and someone accessed it through:
/stuff/page.php/Some_Category/Some_Link
then ALL of that will be in $HTTP_SERVER_VARS['PHP_SELF'], not just page.php. There's no reliable way to parse that out because you someone could also do:
/my.php/page.php/evil.php
assuming they installed it into my.php directory...

Adrian
Subject Author Views Date
Thread why add 'do=page' to links? Dan Kaplan 13118 Jun 27, 2002, 11:46 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 12912 Jun 27, 2002, 1:01 PM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 12953 Jun 27, 2002, 1:12 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
Dan Kaplan 12991 Jun 29, 2002, 11:35 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 12920 Jun 30, 2002, 1:59 AM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 12873 Jun 30, 2002, 8:39 AM
Post Re: [Dan Kaplan] why add 'do=page' to links?
brewt 12894 Jun 30, 2002, 12:54 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
edernest 12792 Aug 27, 2002, 11:54 AM
Thread Re: [edernest] why add 'do=page' to links?
Dan Kaplan 12817 Aug 27, 2002, 11:57 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
edernest 12775 Aug 27, 2002, 12:08 PM
Post Re: [edernest] why add 'do=page' to links?
Dan Kaplan 12775 Aug 27, 2002, 12:12 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 12792 Aug 27, 2002, 12:46 PM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 12778 Aug 27, 2002, 3:03 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 12841 Aug 27, 2002, 3:39 PM
Post Re: [brewt] why add 'do=page' to links?
Dan Kaplan 12780 Aug 27, 2002, 3:46 PM
Thread Re: [brewt] why add 'do=page' to links?
hennagaijin 12502 Nov 20, 2002, 5:22 AM
Thread Re: [hennagaijin] why add 'do=page' to links?
brewt 12475 Nov 20, 2002, 12:43 PM
Thread Re: [brewt] why add 'do=page' to links?
hennagaijin 12469 Nov 20, 2002, 12:59 PM
Post Re: [hennagaijin] why add 'do=page' to links?
brewt 12432 Nov 20, 2002, 6:26 PM
Thread Re: [hennagaijin] why add 'do=page' to links?
Dan Kaplan 12481 Nov 22, 2002, 7:14 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
hennagaijin 12423 Nov 22, 2002, 7:40 PM
Thread Re: [hennagaijin] why add 'do=page' to links?
Dan Kaplan 12468 Nov 22, 2002, 9:41 PM
Post Re: [Dan Kaplan] why add 'do=page' to links?
hennagaijin 12384 Nov 23, 2002, 7:17 AM