Current time: 09-29-2024, 12:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
html extension with php
Author Message
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #1
html extension with php
Hello
I'm trying to run html extension files with php code inside it. I can do it adding this lines to the htaccess file
Code:
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
But with this the output of a mysql query is empty or there is nothing printing in the page. Using the same file with the mysql query but changing the extension of the file to php I can see the output line of the query without problem, so the query is ok.
Now I want to try to add this lines to the apache config
Code:
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
</IfModule>
But I don't know in which config file I need to add it. Can you tell me that?
And if you had the same problem with the html extension and php code please tell me too.

Thanks for your help.

Greetings.

c.
03-04-2009 02:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
html extension with php - coper - 03-04-2009 02:50 AM
RE: html extension with php - coper - 03-04-2009, 03:58 AM
RE: html extension with php - la1o - 03-04-2009, 12:22 PM
RE: html extension with php - coper - 03-04-2009, 10:06 PM
RE: html extension with php - la1o - 03-05-2009, 02:13 AM
RE: html extension with php - coper - 03-05-2009, 03:05 AM
RE: html extension with php - la1o - 03-05-2009, 04:42 AM
RE: html extension with php - coper - 03-07-2009, 05:58 PM
RE: html extension with php - kilburn - 03-10-2009, 02:31 AM
RE: html extension with php - coper - 03-13-2009, 04:03 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)