View Full Version : adding extension to php ?
GregT
October 26th, 2002, 17:38
Is their anyway to add another extension (ex. .yds) and make php parse it just like .php and .php3 ?
keith
October 26th, 2002, 19:24
create a .htaccess file and add the following:
if you're running php4:
AddType application/x-httpd-php .php .php3 .yds
AddType application/x-httpd-php-source .phps .bar
if you're running php3:
AddType application/x-httpd-php3 .php .php3 .yds
AddType application/x-httpd-php3-source .phps .bar
GregT
October 26th, 2002, 21:45
it doesnt work, is there anyway to make it work on w2k servers ?
edit: nm, i found it :D http://yupadog.com/test.yds
keith
October 27th, 2002, 09:14
ah, win2k. that would have been helpful info. .htaccess doesn't work with win2k.
Bruce
October 27th, 2002, 09:24
Originally posted by keith
.htaccess doesn't work with win2k. Actually it can... it depends on the web server, not the OS. If you are running Apache on Windows (why would you though?) then .htaccess will work.
GregT
October 27th, 2002, 10:58
no, im using Ensim Webppliance, so .htaccess wouldnt work.
Bruce
October 27th, 2002, 11:54
Originally posted by raz0r
no, im using Ensim Webppliance, so .htaccess wouldnt work. I never said it would work for you. I merely pointed out the fact that .htaccess is apache-specific, not OS-specific. It will work on Windows if you are using apache.
GregT
October 27th, 2002, 12:14
Originally posted by Bruce
I never said it would work for you. I merely pointed out the fact that .htaccess is apache-specific, not OS-specific. It will work on Windows if you are using apache.
i was just saying that i was using iis 5
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.