Lineman Posted June 22, 2008 Share Posted June 22, 2008 Just want to clarify that i have got this right! If i constructed a very simple webpage for example, and saved itwith a '.PHP' extension and then between the HTML <body> and </body> tags i typed: <?php include "filename.txt"; ?> That would be the correct code to use. Thanks in advance for any and all help and advice. Link to comment https://forums.phpfreaks.com/topic/111305-using-php-includes/ Share on other sites More sharing options...
Bendude14 Posted June 22, 2008 Share Posted June 22, 2008 yer that would work fine or even <?php include('filename.inc.php'); ?> Link to comment https://forums.phpfreaks.com/topic/111305-using-php-includes/#findComment-571354 Share on other sites More sharing options...
Lineman Posted June 22, 2008 Author Share Posted June 22, 2008 Just wanted to make sure that i had got it right. Thanks for the reply Bendude14 Link to comment https://forums.phpfreaks.com/topic/111305-using-php-includes/#findComment-571361 Share on other sites More sharing options...
LemonInflux Posted June 22, 2008 Share Posted June 22, 2008 The best way to work it out is just to test Link to comment https://forums.phpfreaks.com/topic/111305-using-php-includes/#findComment-571480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.