I have a file named comments.php.
Can someone please tell me how I can append the contents of that file on the fly in every php located in a folder and subfolder?
Here is the scenario. When someone clicks on download, I move a folder and all it's subfolder to a temporary directory and I zipped or tar it on the fly, then deliver it thru the browser.
Before zipping it, I would like to add the contents of that file right below the <?php. in every single php like they do in most commercial script.
Here is the content of the dynamic file that I wish to append
####################################################################
<myproduct> <myversion>
#Last Modified: <mydate>
####################################################################
Thank you