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:
If you do not use absolute paths, then the browser simply appends the URL to the part before the last slash (/) of the URL that was used to call the previous page. In your case, the URL that was used was http://localhost:79/scripts/foxweb.exe/sbproc?action=joinlist, so if you simply use your original link to the image, the browser will convert it to http://localhost:79/scripts/foxweb.exe/test.gif, which will cause FoxWeb to try to compile and run a script called test.gif.
For more information on this subject please refer to the Locating and Addressing Scripts topic of the FoxWeb documentation.
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">
"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?