Re: Parsing files without extensions.
| From: | Jeff MacDonald | Date: | Tue, 21 Nov 2000 13:17:13 +0000 |
| Subject: | Re: Parsing files without extensions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26435@lists.php.net to get a copy of this message | ||
you read my mind.
i'll test this.. thanks.
jeff
On Tue, 21 Nov 2000, Teodor Cimpoesu wrote:
> Hi Jeff!
> On Mon, 20 Nov 2000, Jeff MacDonald wrote:
>
> > Hi
> >
> > In an effort to make pages more search engine friendly,
> > i'd like to be able to have php parse a few that do not
> > have extensions..
> >
> > ie, if it could parse the file "zoom" then i could make
> > urls like http://foo.com/zoom/1231
> >
> > instead of http://foo.com/zoom.php?id=1234
> >
> > i've conquered the /1232 vs. id=12312 problem already..
> > just parse the get string.. but now to make php parse
> > zoom
> >
> > i've added
> >
> > AddType application/x-httpd-php zoom
> >
> > into httpd.conf with no effect (yes i restarted apache)
> >
>
> <Directory /path/to/dir>
> <Files "zoom">
> ForceType application/x-httpd-php
> </Files>
> </Directory>
>
> and in zoom.php:
>
> $path_info = explode ('/',getenv('PATH_INFO'));
>
>
> -- teodor
>
>
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
jeff@pgsql.com | jeff@hub.org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose