View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
If the "Use Web server's directory mappings" option is disabled, the files fw_enter.prg and fw_exit.prg should reside in the FoxWeb Program Root of the currently-requested virtual server.  Of course this means that the requested script and fw_enter.prg may not necessarily be in the same folder, because the requested script may be in a sub-folder of the FoxWeb Program Root.
 
If the "Use Web server's directory mappings" option is enabled, the files fw_enter.prg and fw_exit.prg should also reside in the FoxWeb Program Root of the currently-requested virtual server.  You are right in that this is a bit inconsistent.  The most logical place for global procedures to reside in this case would be the Web Root of the currently-requested virtual server, but unfortunately FoxWeb has no way of knowing where this is.  For this reason we chose what we consider the best alternative, which is the Program Root of the currently-requested virtual server.
 
The information in the Environment tab of the FoxWeb Error Log is generated from the output of VFP's LIST STATUS command.  I do not understand how it could be pointing to a non-existent location.

FoxWeb Support Team
support@foxweb.com email

Sent by John Sullivan on 09/02/2006 04:53:16 PM:
 Correction to below. The FW_enter.prg must be in the DEFAULT PROGRAM ROOT. The .FWX files are placed in the web server's directory along with the html static files. So why must the FW_enter.prg be in the DEFAULT PROGRAM ROOT when I select "USE WE SERVER"S DIRECTORY MAPPING"?

Also, where does the envoronment information come from and why would it show a non-existent directory?

John
Sent by John Sullivan on 08/31/2006 11:53:57 AM:

I have been testing using the FW_enter.prg as per the information under GLOBAL PROCEDURES. It seems that even if I specify "USE WEB SERVER'S DIRECTORY MAPPING" the "DEFAULT PROGRAM ROOT" is where FW_Enter.prg must reside. I though when I checked the "Use Web Server's Directory Mapping" all .FWX and other programs needed to be in the web server's directory? Can you please explain?

One more question. Under the ERROR LOG tab of the Control Center there is a tab titled "ENVIRONMENT". In the window for this tab it shows a "Default Directory". Where is this information coming from? It shows a directory that does not even exist on this computer.

Thanks for your help.

John Sullivan