The php_dwebpro Extension
To improve the ISAPI PHP support, new extensions have been added
named php4_dwebpro.dll, php5_dwebpro.dll, php51_dwebpro.dll or php52_dwebpro.dll (respectively for PHP
4, PHP 5, PHP 5.1 and PHP 5.2). These extensions provide the following:
-
The
dwebpro_getvar(var_name: string):string;function is used to recover DWebPro environment variables. Refer to the How to Read DWebPro Internal Constants from Code for more information. -
The
dwebpro_decode(code, path: string)function is used by the PHP scripts encoded by the DWebPro Encoder Software -
The
dwebpro_lockcd():boolean;function locks the CD/DVD drive containing DWebPro -
The
dwebpro_unlockcd():boolean;function unlocks the CD/DVD drive containing DWebPro -
The
dwebpro_ejectcd():boolean;function ejects the CD/DVD drive containing DWebPro -
The
dwebpro_is_internet_connected(int timeout):boolean;function verifies if the user is connected to the Internet. Thetimeoutspecifies the timeout time (in milliseconds) before the function fails and returns a false. -
The
dwebpro_machine_id():string;function returns a 32-character string containing a unique machine ID
The installation of this extension is similar to the one used
for installing other PHP extensions. Copy the appropriate file to
the extensions folder and then add the following line in the php.ini file. For example, for PHP 4, you would add:
extension=php4_dwebpro.dll
For PHP 5, you would add:
extension=php5_dwebpro.dll

