make a .htaccess file like this <Files main> ForceType application/x-httpd-php </Files> <Files boards> ForceType application/x-httpd-php </Files> <Files read> ForceType application/x-httpd-php </Files>
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