samedi 28 décembre 2019

How to include/require a portion of text from a file?

Each page of my website has a related famous quote before the footer. I would like to write all quotes in a html/txt/php file and from there include the relevant one on each page. When trying to use require or include, it doesn't work because they are designed to call the contents of a whole file, not just a portion of it. How can I accomplish this?




Aucun commentaire:

Enregistrer un commentaire