hey there guys...
i have the following code, that is being used to include a php file into a .html file:
<?php include("http://www.biffyclyro.com/nav.php") ?>
it is in an html file but it isn't including the nav.php file.
any ideas?
hey there guys...
i have the following code, that is being used to include a php file into a .html file:
<?php include("http://www.biffyclyro.com/nav.php") ?>
it is in an html file but it isn't including the nav.php file.
any ideas?
By default an html file won't be parsed for php code so if that line of code is present in your html file it won't be executed. You would have to configure Apache(or whichever webserver you're using) to parse html files for php content.
Perhaps you don't have "URL fopen wrrappers" set up and that is why the url address is not recognized
it is a common misconception that php outputs html. The truth is that php outputs text, you can use header to do something else. For example you could have the php script generate the javascript to draw the html menuu then include the file with the src parameter of the script tag.
why not just call your main page a php file?