Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5993185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:38:20+00:00 2026-05-22T23:38:20+00:00

I am working on some HTML code that was inherited from another programmer, which

  • 0

I am working on some HTML code that was inherited from another programmer, which uses include statements of the form:

~inc:filename.inc~

However, the problem I am encountering is that this include statement does not work reliably. About 90% of the time, all information in the included file is imported with no problem, but every so often all of that content goes missing when I refresh the page and comes back in when I refresh again. I have already tried changing the include statements to more widely-used forms such as:

<!-- FILE="filename.inc"-->
<!-- virtual="../filename.inc"-->
<!-- virtual="/filename.inc"-->

but this only results in the file consistently not being included at all. I have been poking around other places on the Internet, but can’t seem to find any solutions or even any usage of of the ‘~inc:’ include statement.

It is worth noting that this HTML is being loaded from firmware hosted on low-power equipment and certain items on the page are updating regularly. Is it possible that the updating methods are simply running too fast for the hardware to handle?

Does anyone have any ideas for how I can solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:38:20+00:00Added an answer on May 22, 2026 at 11:38 pm

    OK, so I downloaded the application library documentation and looked in TCPIP Stack Help.chm and found the HTTPIncFile function:

    void HTTPIncFile(ROM BYTE* cFile);

    Users should not call this function directly, but should instead add dynamic variables in the form of ~inc:filename.ext~ in their HTML code to include (for example) the file “filename.ext” at that specified location. The MPFS2 Generator utility will handle the rest.

    So it looks like your original syntax is the only documented one. Now, although it says not to call the function directly, since you’re having problems, it might be worth doing that to see if you get the same results.

    Also note that:

    When curHTTP.callbackPos is 0, the file is opened and as many bytes as possible are written. The current position is then saved to curHTTP.callbackPos and the file is closed. On subsequent calls, reading begins at the saved location and continues. Once the end of the input file is reached, curHTTP.callbackPos is set back to 0 to indicate completion.

    This is pure speculation, but it’s possible that you might encounter issues if you try to include the file more than once, or try to include one or more files at the same time. If a file is not being included, it could be because the callbackPos wasn’t reset. I was also assuming you aren’t trying to modify the template file, but you did say:

    certain items on the page are updating regularly

    If the files you wish to include are changing, you are probably encountering concurrency problems. You may need to resort to locking or synchronization to make sure this doesn’t happen, or try wait-spinning on the include method, checking the offset, until you successfully include a positive number of bytes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an application which retrieves some HTML code from a record in
I have been working on some legacy C++ code that uses variable length structures
I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how
I've inherited some code that I need to debug. It isn't working at present.
I wrote some html/css/javascript code that was taken verbatim from a javascript textbook. For
Working on some tweaks for a build script, I noticed that the output from
I've been working with PHP code that generates HTML without any templating, and it's
I am working on some code that previously was using a cfquery, and is
I am working with some legacy (circa 2003) javascript and html code and need
I am working on some code that scrapes a page for two css classes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.