.htaccess addhandler
Posted by: Django (---.16-87-r.retail.telecomitalia.it)
Date: July 06, 2016 03:54PM

Does WAMP support the following:

AddHandler application/x-httpd-php70 .php .php5 .php4 .php3

I want to code this because it will be used by the production server, however if i code this, the php source of the page being accessed will be download instead of being processed

Options: ReplyQuote
Re: .htaccess addhandler
Posted by: RiggsFolly (Moderator)
Date: July 06, 2016 05:59PM

Maybe you should explain what you think you are trying to achieve as it looks like you are trying to get PHP7 to run PHP3 and php4 and php5 code.

For sure the php3 and php4 code is not going to like PHP7 and quite a bit of php5 code will not be happy either

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: .htaccess addhandler
Posted by: Otomatic (Moderator)
Date: July 06, 2016 07:16PM

Hi,

Wampserver or rather Apache, supports the .php extension by

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

that is to say the .php extension files or .php3 will be covered by the "handler" x-httpd-php.
Basic, there is no other "handler".
Even the "handler" CGI must be declared explicitly for example by
AddHandler cgi-script .cgi
But there must be an "engine" to install to run the "handler" cgi-script.

This means that if you want to use another "handler" (x-httpd-php70) as the base (x-httpd-php), you must also install the "engine" for it.

see : [httpd.apache.org]
and : [httpd.apache.org]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.