Re: Re: RewriteRules
| From: | tedd | Date: | Tue, 13 Jan 2009 14:33:20 +0000 |
| Subject: | Re: Re: RewriteRules | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286209@lists.php.net to get a copy of this message | ||
At 2:33 PM +0000 1/13/09, Ashley Sheridan wrote:
On Tue, 2009-01-13 at 09:20 -0500, tedd wrote:Ash: That's what I've said for years, but (I think it was on this list, but too lazy to look) there was a concern that some browsers may not follow that default behavior. However, using what I provided will work regardless. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comJason: In addition to what everyone else has said, try this: $self = basename($_SERVER['SCRIPT_NAME']) I use it for forms -- you might find it useful. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comNo need to use it on forms, as leaving the action attribute empty means the form sends to itself anyway. Ash