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 13430 Jun 27, 2002, 11:46 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 13221 Jun 27, 2002, 1:01 PM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 13263 Jun 27, 2002, 1:12 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
Dan Kaplan 13301 Jun 29, 2002, 11:35 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 13231 Jun 30, 2002, 1:59 AM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 13184 Jun 30, 2002, 8:39 AM
Post Re: [Dan Kaplan] why add 'do=page' to links?
brewt 13204 Jun 30, 2002, 12:54 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
edernest 13103 Aug 27, 2002, 11:54 AM
Thread Re: [edernest] why add 'do=page' to links?
Dan Kaplan 13127 Aug 27, 2002, 11:57 AM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
edernest 13085 Aug 27, 2002, 12:08 PM
Post Re: [edernest] why add 'do=page' to links?
Dan Kaplan 13084 Aug 27, 2002, 12:12 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 13102 Aug 27, 2002, 12:46 PM
Thread Re: [brewt] why add 'do=page' to links?
Dan Kaplan 13087 Aug 27, 2002, 3:03 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
brewt 13150 Aug 27, 2002, 3:39 PM
Post Re: [brewt] why add 'do=page' to links?
Dan Kaplan 13089 Aug 27, 2002, 3:46 PM
Thread Re: [brewt] why add 'do=page' to links?
hennagaijin 12811 Nov 20, 2002, 5:22 AM
Thread Re: [hennagaijin] why add 'do=page' to links?
brewt 12784 Nov 20, 2002, 12:43 PM
Thread Re: [brewt] why add 'do=page' to links?
hennagaijin 12779 Nov 20, 2002, 12:59 PM
Post Re: [hennagaijin] why add 'do=page' to links?
brewt 12741 Nov 20, 2002, 6:26 PM
Thread Re: [hennagaijin] why add 'do=page' to links?
Dan Kaplan 12792 Nov 22, 2002, 7:14 PM
Thread Re: [Dan Kaplan] why add 'do=page' to links?
hennagaijin 12733 Nov 22, 2002, 7:40 PM
Thread Re: [hennagaijin] why add 'do=page' to links?
Dan Kaplan 12778 Nov 22, 2002, 9:41 PM
Post Re: [Dan Kaplan] why add 'do=page' to links?
hennagaijin 12693 Nov 23, 2002, 7:17 AM