KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Executing CGI without making it visible to the Web User
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: February 24, 2005

In 4D 2004, the new SET CGI EXECUTABLE command allows you to execute a CGI without making it visible to the Web user in the URL. This command takes Access URL as parameter for the CGI to be executed. You can use this command in the On Web Authentication database method to control which CGI to execute. As shown below, the code in the said database method determines which CGI will be executed based on the URL typed in the Web Browser. For instance, if the URL typed contains "scores," the CGI DrawScores.cgi will be executed. The perl scripts in this example are located in the cgi-bin folder in the WebFolder of the database.

code