Tech Tip: How to detect if the Web Server is running in v12 and prior
PRODUCT: 4D | VERSION: 12.5 | PLATFORM: Mac & Win
Published On: January 7, 2013
The following method can be used to quickly determine whether or not the Web Server is running:
C_BOOLEAN($0) $0:=(Process number("Web Server";*)#0) //(named"Serveur Web" in French) |
If the code above is saved as UTIL_isWebServerUP then it could be used like this:
if(UTIL_isWebServerUP) // web server is running // do something else // web server is not riunning /// do something else end if |
Note: this only works in v12 and prior - it will not work in v13