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 Quote Link to comment 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 Quote Link to comment 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'); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.