Hi, I have an interesting problem which should be easy to solve, but I haven't yet. I have a Perl script that takes information from an Access database and publishes it in two HTML files, an index.htm and an index_content.htm. Index_content.htm is actually an INCLUDE in index.htm.
Once the information is published and the script is run, the two pages are created, and the include is shown correctly in FrontPage.
However, when I go to view index.htm in a regular browser, the include (index_content.htm) is NOT showing up in index.htm, although in the source, there is clearly HTML code for the include. Here is the perl code that does this:
############ WRITE INDEX FILE
print "writing $web_target/index.htm\n";
open(OUTFILE, "> $outdir$web_target/index.htm");
start_narrow_page(\*OUTFILE, "$field2{title}", $field5{stylesheet2});
########THIS IS THE INCLUDE HTML CODE##################;
print OUTFILE "<p><span class=\"title\"></span><!--webbot bot=\"Includ
+e\" U-Include=\"index_content.htm\" -->";
########THIS IS THE INCLUDE HTML CODE##################;
end_narrow_page(\*OUTFILE, "######\@###.lmco.com");
close(OUTFILE);
print LOGFILE "$web_target/index.htm\n";
############ WRITE INDEX_CONTENT FILE
print "writing $web_target/index_content.htm\n";
open(OUTFILE, "> $outdir$web_target/index_content.htm");
# start_narrow_page(\*OUTFILE, "$field2{title}", $field5{stylesheet2
+});
#blah blah blah;
#blah blah blah;
# end_narrow_page(\*OUTFILE, "########@####.lmco.com");
close(OUTFILE);
print LOGFILE "$web_target/index_content.htm\n";
I have tried opening and closing the file in FrontPage, that doesn't work. I have tried refreshing the page all over the place. That doesn't work either. If anyone has an idea of how to get this include to come up in a browser, please let me know. I am new to this site in general and I hope someone has an idea.
Thank you,
Pilot
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.