how i include example.php file into index.html?
Posted: Sat Jan 23, 2010 8:44 am
can anybody help to include example.php file into index.html?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
include 'example.php';
?>I completely agree with timWebUK, you should change your index.html file to index.php and then your include will work. However, I have seen sites in the past that have successfully included a php file within a html file. I'm not sure what the settings on the server need to be in order for this to work, but it is possible.You don't, you would include example.php within index.php