Is there a way to create an area of an HTML page that calls an external text file?
This way, where ever the text is throughout the site, it could be changed in one simple text file and then it automatically be updated on every HTML page where it is referenced without having to physically change every HTML document.
Can someone give a newbie some direction?
Thanks in advance.
Referencing an external text file for content
Moderator: General Moderators
Code: Select all
print(file_get_contents('file.txt'));