prcollin Posted July 24, 2007 Share Posted July 24, 2007 how would i include a file that contained all the html code for the display of a webpage in a php fifle so that i dont have to clutter the php with the html Link to comment https://forums.phpfreaks.com/topic/61462-including-an-html-file-in-php-script/ Share on other sites More sharing options...
teng84 Posted July 24, 2007 Share Posted July 24, 2007 http://www.php.net/manual/en/function.include.php include('your html file dir'); note try to look for include once and require once thats better Link to comment https://forums.phpfreaks.com/topic/61462-including-an-html-file-in-php-script/#findComment-305906 Share on other sites More sharing options...
suttercain Posted July 24, 2007 Share Posted July 24, 2007 the same way you include any file... <?php include ('file.html'); ?> Link to comment https://forums.phpfreaks.com/topic/61462-including-an-html-file-in-php-script/#findComment-305912 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.