Re: phpbuilder article question
| From: | Joe Stump | Date: | Fri, 22 Dec 2000 17:04:10 +0000 |
| Subject: | Re: phpbuilder article question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31595@lists.php.net to get a copy of this message | ||
File local isn't a directory - it's a file named local with no .php on the
end. What the article neglects to mention is if you use foo.php/2/3 it will
still parse out just fine.
--Joe
On Fri, Dec 22, 2000 at 12:41:22AM -0800, Gerry Chu wrote:
> The phpbuilder article "Building Dynamic Web Pages with Search Engines in
> Mind" has this example:
>
> ----------
> <Location /local>
> ForceType application/x-httpd-php3
> </Location>
>
> This forces every request that starts with "/local/" to call a script called
> "local" (just "local", not "local.php3") in the $DOCUMENT_ROOT
> (usually
> called "/htdocs/") of your server. "local" then uses PHP to parse the URL
> and act accordingly. The code for my "local" script is on the last page of
> this article. You can of course replace "local" with any filename you want,
> as long as you change your httpd.conf accordingly.
> -----------
>
> So what it's saying is that when a user accesses a page with a $PHP_SELF
> that starts with /local, it calls a script called "local" in $DOCUMENT_ROOT.
> So the "local" dir also must be in $DOCUMENT_ROOT. Wait...you can't have a
> file and a directory with the same in name in the same directory, can you?
>
> How'd they do it?
>
> Thanks,
>
> Gerry
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
Joe Stump
PHP Programmer
www.Care2.com