Re: php shows as text

From: Date: Sun, 28 Nov 2004 00:16:53 +0000
Subject: Re: php shows as text
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-14822@lists.php.net to get a copy of this message
Patrick Donker wrote:
Hi list, Yes I've searched the archive ;) I have a strange thing, which must be a something trivial. My .php files run as expected, but as soon as I try to run a script from an extentionless file, it shows up as text; the source is shown. I saw on the php.net faq that if that happens I should replace the AddType application/x-httpd-php .php .phtml with AddType text/html php and add AddHandler php-script php to my httpd.conf, which I did. Saved, restarted, but still the same thing. As soon as I add .php to the file, it runs just beautifully. Why not just add .php you might say, but it is part of a larger installation, which calls these extentionless files, so that is no option. Any hints? Thanks -Patrick try :
DefaultType application/x-httpd-php AddType application/x-httpd-php .php .phtml Cheers, Brad Kowalczyk Web Developer brad@ibiscode.com http://ibiscode.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.4.3 - Release Date: 26/11/2004

« previous php.install (#14822) next »