I want a div code to read a .txt file from a certain folder and it will display the .txt content on the div code.
E.I: If i upload a thisisatest.txt, with the contents of "This is a test" Date:"Whatever the date is" and the div will see that i uploaded the file to the said folder and it will display "This is a test, date posted: Whatever the date is". It will also display all the original .txts.
Currently i am using:
<?php
echo file_get_contents("test.txt");
?>
It is working fine but i need it to see that if i post something lie {date} and the text following it will be displayed differently.
Any help? Thanks.