Re: Parsing files without extensions.
| From: | Teodor Cimpoesu | Date: | Tue, 21 Nov 2000 10:52:19 +0000 |
| Subject: | Re: Parsing files without extensions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26416@lists.php.net to get a copy of this message | ||
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