LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-16-2005, 12:42 AM   #1
aciesd
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, 02:02 AM   #2
thermite_1033
Member
 
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, 06:09 AM   #3
linuxmandrake
Member
 
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, 09:05 AM   #4
phil.d.g
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
 
  


Reply


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 10:46 AM
html into php charnel Programming 7 08-30-2005 11:47 AM
HTML/PHP question perfect_circle Programming 2 04-22-2005 12:42 PM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 07:36 AM
.htaccess .html -> .php timmy01 Linux - General 2 09-07-2003 06:30 AM


All times are GMT -5. The time now is 12:32 PM.

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