Re: PHP and CGI
| From: | sono-io at fannullone dot us | Date: | Thu, 20 Aug 2009 20:56:09 +0000 |
| Subject: | Re: PHP and CGI | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297038@lists.php.net to get a copy of this message | ||
Hi Tedd,
In your .htacess file add this: # handler for phpsuexec. -- makes following prefixes considered for php <FilesMatch "\.(htm|html|pl)$"> SetHandler application/x-httpd-php </FilesMatch>Thanks for the code. I placed it in the .htaccess file for the output templates, but unfortunately it didn't work. It just prints out part of the PHP code on the template: / '; for ($year = date("Y") ; $year <= date("Y") + 9 ; $year++) { echo "$year\n"; } echo ''; ?> Thanks also to everyone else who responded as well. I'm off to find a PHP shopping cart! Frank