1.

Solve : Inserting the contents of a txt file onto a html file?

Answer»

Hi how would i make it so the contents of a file called Noticebar.txt and inside the file is this peice of html


     hi


How would i INSERT that on my html index PAGE WITHOUT copy and paste. (so it can be updated without looking threw the index file)Add this to your page exactly where you want it to appear:

Code: [Select]<?php INCLUDE(dirname(__FILE__) . "/file.txt"); ?>



Discussion

No Comment Found