Re: [PHP] A question about .php file extension

2002-09-12 Thread Erwin

Adam Williams wrote:
> make a directory called phptest and put a file, index.php in
> it...never 
> tried it tho.

In that case you will have to call http://localhost/phptest/?id=22

Grtz Erwin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] A question about .php file extension

2002-09-12 Thread Adam Williams

make a directory called phptest and put a file, index.php in it...never
tried it tho.

On Thu, 12 Sep 2002, LI DONG wrote:

> Hello everyone,
>
> It is a question about .php file extension. Is there any way to access PHP4
> script in Apache 1.3.x without .php extension? For example, how to use
>
> http://localhost/phptest?id=22
>
> instead of
>
> http://localhost/phptest.php?id=22
>
> Thanks a lot!
>
> ld.
>
> _
> ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£http://www.hotmail.com/cn
>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] A question about .php file extension

2002-09-12 Thread John Wards

make a .htaccess file like this


ForceType application/x-httpd-php


ForceType application/x-httpd-php


ForceType application/x-httpd-php


This makes the file main boards read php files

What we do with it is make dynamic pages look like dirs for example
sportnetwork.net/main/s85.php would just be sportnetwork.net/main.php?s=85
we use eregs to get the values out.

Cheers
John Wards
- Original Message -
From: "LI DONG" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 3:23 PM
Subject: [PHP] A question about .php file extension


> Hello everyone,
>
> It is a question about .php file extension. Is there any way to access
PHP4
> script in Apache 1.3.x without .php extension? For example, how to use
>
> http://localhost/phptest?id=22
>
> instead of
>
> http://localhost/phptest.php?id=22
>
> Thanks a lot!
>
> ld.
>
> _
> ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£http://www.hotmail.com/cn
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php