All static files, such as images, stylesheets, html files, java applets, etc., must be located in the Web root and its subfolders -- not the FoxWeb Program Root, or its subfolders. This is because these files are not served by FoxWeb, but are rather processed directly by the Web server. For this reason, the URLs that refer to such files must be absolute (starting with "/").
For example, assumming that your Web root is c:\inetpub\wwwroot, you could create subfolder c:\inetpub\wwwroot\images for your images and use the following tag to point to test.gif from the output of your FoxWeb scripts:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hello
<img src='/images/test.gif'>
</HTML> |
FoxWeb Support Team support@foxweb.com email |
Sent by Rich on 10/07/2003 07:35:23 PM:
I have FoxWeb call a .PRG, which generates a simple web page:
------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hello
<img src='test.gif'>
</HTML>
------------
"Hello" appears on the webpage.
However, the image does not appear, and there is now a TEST.FXP and TEST.ERR file in my directory which were created from the TEST.GIF file.
What's going on?