I have a html file that gets updated every few minutes by a batch file. When i use a include i get current text. I would like
the updated text be shown each time the page loads. I tried to use DynContent but end up in infinite loop.
Any suggestions.
Page1.html [ includes page2.html ]
page2.html is updated by a shell script every few minutes .
TIA
If you use an uncached snippet to include the dynamic content, it should update on every page load.
Something like this might work (I’m assuming that the dynamic page is a disk file):
Revolution:
Evolution:
<?php
/* GetDynamicContent snippet */
return file_get_contents('path/to/html/file');
If the file contains stuff that you don’t want to include (and it probably does), you’ll need to parse it to get just the part you want.
Thank you. Where do i create the code snippet it. Do i just create a new module with this name.
Quote from: whizkid at Jun 08, 2011, 10:01 AM
Thank you. Where do i create the code snippet it. Do i just create a new module with this name.
Not a module, you create a *snippet* with that name.