Re: RE:Re: [PHP] Executing a PHP script without a *.PHP extension?

From: Date: Wed, 18 Oct 2000 16:46:32 +0000
Subject: Re: RE:Re: [PHP] Executing a PHP script without a *.PHP extension?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20924@lists.php.net to get a copy of this message
Use the ForceType directive in Apache. http://www.apache.org/docs/mod/mod_mime.html#forcetype shanx@shanx.com wrote: > > Hi Dan, > > I understand that I can choose any extension to recognized as a PHP program, in fact I can do > that in one line: > > AddType application/x-httpd-php .php .shx .blah > > My question was what if I want files without ANY extension to be parsed by Apache as PHP files > as well... > > Any ideas? > Shanx. > > >>If I rember corectly, you need to alod define > >>the extensions as being a php script..Basicly > >>in either httpd.conf or srm.conf depending on > >>how you installed php, you need to also add the > >> extension so it reasls something like > > >>AddType application/x-httpd-php3 .php3 > >>AddType application/x-httpd-php3 .phtml > > _________________________________________________ > The simple way to read all your emails at ThatWeb > http://www.thatweb.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#20924) next »