This is all because msaccess outputs reports in html as separate pages and names them filePageTwo.html, filePageThree.html etc etc. The output html files are then sent to the web server, but the page I link from has the file link simply as "file.html" and thus other files are not displayed. of course, i could have a row of links, but they are not always needed and I think this is messy and could lead to misinformation if old data is displayed. So I've been doing the cat filePagetwo >> file.html up till now. Dearest of Teds - thanks for all that, I must admit to being a bit overwhelmed though. I was thinking to run a bit of php code when the page was accessed, to trigger the cat file2 >> file. The $bigfile = join(file("filename1"), file("filename2")); print $bigfile; suggested by Brett does exactly what I need....I just need to figure out how to run the damned thing now! (I do need to find out how to trigger a script when web page is accessed though, as I need to delete appended pages so they won't be appended the next day (if there is a page two one day but not the next the old page two will append when we don't want it).) Grateful thanks all. Jen.
On Mon, Feb 18, 2002 at 03:32:54PM +0000, Jenny_Hopkins@toby-churchill.com wrote:
This is all because msaccess outputs reports in html as separate pages and names them filePageTwo.html, filePageThree.html etc etc. The output html files are then sent to the web server, but the page I link from has the file link simply as "file.html" and thus other files are not displayed. of course, i could have a row of links, but they are not always needed and I think this is messy and could lead to misinformation if old data is displayed. So I've been doing the cat filePagetwo >> file.html up till now. Dearest of Teds - thanks for all that, I must admit to being a bit overwhelmed though. I was thinking to run a bit of php code when the page was accessed, to trigger the cat file2 >> file. The $bigfile = join(file("filename1"), file("filename2")); print $bigfile; suggested by Brett does exactly what I need....I just need to figure out how to run the damned thing now!
(I do need to find out how to trigger a script when web page is accessed though, as I need to delete appended pages so they won't be appended the next day (if there is a page two one day but not the next the old page two will append when we don't want it).)
You never actually need to generate the static page, also, if you *really* want to cheat, upload the files to a different directory (one that you know will only hold them) then using a small php script in the webtree concat all the files together and splat them out the other end, this has the down side of server load but the plus side of ease...
<?php
$content = ""; $d = dir("/path/to/files/"); while ($entry = $d->read()) { if ( filetype($entry) == "file" ) { $content = join($content, file($entry)); } } print $content;
?>
as always - this is more or less off the top of my head, and hasn't been tested at all, I think that should work and will go > 2 files, not sure if the order will be correct thou. Would be more than happy to think some more about it if you want to go that route.
Cheers,
Brett