Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-15-2005, 11:42 PM   #1
LQ Newbie
Registered: Jun 2005
Distribution: Fedora Core 4.
Posts: 15

Rep: Reputation: 0
HTML fighting PHP

I have recently assembled a website involving some heavy PHP and MySQL with moderate XHTML. The pages worked on two different test servers (one windows and one Fedora Core 2) however they refuse to work with Fedora Core 3. I have up2dated the PHP Apache and MySQL. it still will not work. For testing purposes I tried running a php page and a seperate Html page. they both worked. I checked everything. the only a page won't run is when has both HTML and PHP. I have done everything i know to do, with the help of some linux savy friends of mine.
Old 07-16-2005, 01:02 AM   #2
Registered: May 2004
Location: Antwerp, Belgium
Distribution: slackware
Posts: 112

Rep: Reputation: 18
in you config of apache there has to be something like this to tell apache to parse all files ending in .php trou php, just add the things in red

AddType application/x-httpd-php .php .phtml .html .htm
Old 07-16-2005, 05:09 AM   #3
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
I dont advise you to put php coding in html files though cos it can be viewed by anyone where as the php extension it's protected.
Old 07-16-2005, 08:05 AM   #4
Senior Member
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
By doing as thermite_1033 suggested all htm and html files will be treated in the same way as php files, that is to say they will be interpreted by the php interpreter, when run like that no php code will be sent to the browser


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse HTML using PHP jilljack Programming 1 11-07-2005 09:46 AM
html into php charnel Programming 7 08-30-2005 10:47 AM
HTML/PHP question perfect_circle Programming 2 04-22-2005 11:42 AM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 06:36 AM
.htaccess .html -> .php timmy01 Linux - General 2 09-07-2003 05:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration