Hi everyone,
Just simply question if anyone can help me...
what i need is a simply way to put php code into .html page
-------------
<?php
// Requiring file
require_once ("config/con_db.class.php");
require_once ("function/function.php");
require_once ("class/pagination.class.php");
/** Connect to database */
$connect = new db();
/** Include the header */
require_once ("templates/header.php") ?>
MY CONTENT CONTENT HERE THEN
<?php include('templates/footer.php'); ?>
-----------------
I don´t want change mod_rewrite and .htaccess, it's just a simple way to call this commands from html
thanks
Edilson
Php inside Html static page
Moderator: General Moderators
Re: Php inside Html static page
Well, if you are not wanting to do a mod_rewrite or put anything into .htaccess to tell it to treat .html as a PHP file, then your only alternative is to alter httpd.conf to tell it that .html should be processed as php files. (However, if you are not willing to do it in .htaccess for a directory, you are probably not wanting to do it for the entire server...)
-Greg
-Greg