9999 Posted March 8, 2007 Share Posted March 8, 2007 With the standard php include command: <? include("filename.php") ?> do both the included file as well as the file that the included file goes on have to be php files? If not, how could you do this using html files other than using frames? Link to comment https://forums.phpfreaks.com/topic/41858-php-include-question/ Share on other sites More sharing options...
SammyGunnz Posted March 8, 2007 Share Posted March 8, 2007 If you're asking whether you can use the include function in an html file, then no. Not unless you specifiy (serverside) in Apache that you want htm/html files to be parsed as PHP too. Link to comment https://forums.phpfreaks.com/topic/41858-php-include-question/#findComment-202985 Share on other sites More sharing options...
linuxdream Posted March 8, 2007 Share Posted March 8, 2007 But you can include a .html file into the php file you have the include() in.... Link to comment https://forums.phpfreaks.com/topic/41858-php-include-question/#findComment-202994 Share on other sites More sharing options...
9999 Posted March 8, 2007 Author Share Posted March 8, 2007 So the "host" file must be a php file but the included file doesn't have to be? Link to comment https://forums.phpfreaks.com/topic/41858-php-include-question/#findComment-203006 Share on other sites More sharing options...
suzzane2020 Posted March 8, 2007 Share Posted March 8, 2007 Exactly Link to comment https://forums.phpfreaks.com/topic/41858-php-include-question/#findComment-203013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.