I'm trying to include a php filefrom my host in my .htm webpage.Code:<?php include("menu.php"); ?>
I got nothing. I also tried editing the htaccess as well.
It worked perfectly fine in my previous host,but why not in here?
I'm trying to include a php filefrom my host in my .htm webpage.Code:<?php include("menu.php"); ?>
I got nothing. I also tried editing the htaccess as well.
It worked perfectly fine in my previous host,but why not in here?
the code is working fine
you can't use php code in an .htm file....you need to save your .htm as .php
Actually, PHP can be run in a .htm or .html file, but it requires editing of .htacess
Add the above to a .htaccess file, save it and *bingo*! (hopefully).Code:AddType application/x-httpd-php .htm .html
If you're unfamiliar with .htaccess files, create a new file named EXACTLY '.htaccess' (without the quotes, nothing before the period!). In it, put the above and save it to your root directory.
Last edited by Scoochi2; 04-24-2009 at 10:53 AM.
If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:
Stupid question... does your new host support php?
Simple enough to find out, because the code remains in the source code when you open the page.
Just try a simple echo statement.
either that, or try phpinfo();