PHP parsed in html files - a brief howto for all those sweating on this .htaccess problem

Love is the best guide to chose right from wrong
Advertise on this site  

Last updated Sun, 20 Jul 2008 08:00:25 +0800 PHT

I love php! - I once used only CGI - SSI - now i switch to php SSI

Now it is working ... it took me many attempts - each time hours of Goggling and searching, now by inspiration I found my problem which may be the same as many others ...

How to to parse php includes in a regular HTML files without changing the .html file type to .phtml or .php

the solution is simple - check your .htaccess and see if you have another line like:

Simple solution for parsing PHP in HTML - first remove old stuff from CGI - SSI in your .htaccess

AddHandler server-parsed htm html xhtml shtml

which normally is used for cgi includes - that's what I used since last millennium for SSI and I always ported it from host to host ...

the two configurations appear to oppose and neutralize each other

hence

either SSI by cgi ( perl )

OR

SSI by php

in the case of php I used the option offered by 1and1.com FAQ to add the line:

AddType x-mapp-php4 .html .htm

in my .htaccess file and REMOVED the line:

AddHandler server-parsed htm html xhtml shtml

but what if you have some CGI SSI and want only in a few folders or sub-folders to use php SSI ??

then you put into the .htaccess of that folder with .html files using php-SSI the following line

removeHandler server-parsed htm html xhtml shtml

the VERY same line you have in your domain root .htaccess or in any .htaccess HIGHER than the folder you want to use php in HTML files

this removeHandler - line stops the command given in a higher level .htaccess to free apache for php SSI !

have fun

love and bliss

hans



Philippine News

Philippine News
Last updated: Sat, 19 Jul 2008 23:58:35 GMT
SwissChalet Hotel owner pays below minimum legal wages - Angeles City Philippines
The fact that other business, including rich businesses in the Philippines, pay wages below legal minimum wages does in NO WAY justify other business or hotels or all businesses to pay wages below legal minimum.
Tue, 24 Jun 2008 00:51:00 +0800
Mobile Internet in the Philippines
Conecting your laptop via G3 cellphone into Internet using Bluetooth and existing prepaid smart phone technology.
Sun, 15 Jun 2008 12:48:00 +0800
Business in the Philippines - Risks and dangers for foreign investors
Planning to do business in the Philippines? Study risks and dangers of investing in the Philippies. Understand the needs of a country before wasting your investment in the Philippines
Tue, 20 May 2008 17:59:00 +0800
Hans Hofmann, owner Restaurant / Hotel Swiss Chalet vs his employees. The case extends and delays without any honest and legally correct payout of backwages
The last hearing at the Dept of Labor and Employment on April 4, 2008 resulted no help or solution by the administration (Dept of Labor and Employement). The case of employee exploitation by the business owner continues. Read the newest report.
Sat, 05 Apr 2008 14:20:00 +0800
Department of Labor and Employment, City of San Fernando, Papanga vs employees
When a Dept of Labor fails to help the employees but seem to protect the employers instead, then its time to forward the case ...
Wed, 19 Mar 2008 07:59:00 +0800
Tropical garden photos
Photos from the Baguio Garden exhibit with tropical garden and flower garden made by competing professional landscape experts of the Philippines islands
Sat, 08 Mar 2008 02:07:00 +0800
powered by zFeeder

More hot topics from my site

It's all about ...

Last updated: Sat, 19 Jul 2008 23:05:50 GMT
Widescreen beach wallpapers Boracay White Beach: Free beach wallpaper download. World's famous beautiful Boracay island on high resolution photos.
Fondos amor, fondos corazones y rosas, fondos rosas amor gratis 1600x1200px.
Blaues Meer Fotos: blaues Meer Foto Hintergrundbilder, turquoise und blaues Meer als Desktop Hindergrundbilder, Wallpaper Widescreen. Turquoise blaue Lagunen und Buchten der Insel Coron, Palawan, Philippinen. Kostenlose Widescreen Hintergrundbilder.
Free beach wallpapers beautiful white beach boracay, desktop wallpapers tropical beaches. All beach-wallpapers format 1024x768px and 1600x1200px
Fruits of the Philippine islands
Rosas más bellas - fondos de pantalla rosas gratis. Foto fondos rosas, rosas de amor colores rojas, amarillas, blancas, rosadas, anaranjadas. fondos de escritorio rosas filipinas gratis. Fotos rosas 1600x1200px - 4:3
Free Wallpapers: 4000+ wallpapers, wallpapers tropical sceneries, wallpapers nature and tropical flowers. Wallpapers beaches and ocean view - free wallpaper download for normal desktop background format and widescreen wallpapers. Enjoy the wallpapers from beautiful tropical flowers and nature of the Philippine islands.
Fondos playas: Fondos paisaje tropical de las playas más bellas - Colección fondos de escritorio paisaje tropical playas más bellas filipino - fondos pantalla 1600x1200px - 4:3
Tarjetas digitales gratis: Postales virtuales gratis. Postales de amor, cumpleaños, feliz navidad, tarjetas digitales rosas, flores exóticas mas bellas de las islas Filipinas.
powered by zFeeder


Teachings of Love - solutions of Love | Secrets of Love - Solutions of Love | Cyberspace Cyberspace Ashram for Kriya Yoga