how i include example.php file into index.html?
Moderator: General Moderators
-
venkatesh.svs
- Forum Newbie
- Posts: 12
- Joined: Wed Jan 06, 2010 1:30 am
how i include example.php file into index.html?
can anybody help to include example.php file into index.html?
Re: how i include example.php file into index.html?
You don't, you would include example.php within index.php
Code: Select all
<?php
include 'example.php';
?>- SimpleManWeb
- Forum Commoner
- Posts: 57
- Joined: Wed Dec 30, 2009 4:15 pm
- Location: New Hampshire, USA
Re: how i include example.php file into index.html?
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