RE: [PHP] Parsing files without extensions.
| From: | Benjamin Munoz | Date: | Wed, 22 Nov 2000 01:58:33 +0000 |
| Subject: | RE: [PHP] Parsing files without extensions. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26558@lists.php.net to get a copy of this message | ||
There's an article with more info on this at:
http://www.faqts.com/knowledge-base/view.phtml/aid/124/fid/342
-Ben
-----Original Message-----
From: Jeff MacDonald [mailto:jeff@pgsql.com]
Sent: Tuesday, November 21, 2000 5:17 AM
To: Teodor Cimpoesu
Cc: php-general@lists.php.net
Subject: Re: [PHP] Parsing files without extensions.
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