A PHP installation is needed if PHP-script is used in the Matlab Web Server applications (e.g in the HTML code).
Download the most recent version of PHP for Windows on:
Extract the distribution file to a directory.
This part explains how to set up PHP in order to use Apache module dll.
It is needed to ensure that the dlls that PHP uses can be found. The precise dlls involved depend on the web server in use and if PHP is running as a CGI or as a server module. Php4ts.dll is always needed. Relevant DLL from the sapi folder is also needed. If any PHP extension DLLs are used then they are needed as well. To make sure that the DLLs can be found, copy them to the system directory (e.g winnt/systm32).
Copy php4ts.dll and all all .dll-files under the dll folder to winnt/system32 There are two ini-files, php.ini-dist and php.ini-recommended, distributed with the PHP installation. The latter is recommended.
Copy php.ini-recommended to the system directory (e.g winnt) and rename it to php.ini. Edit the new php.ini file. Set the root of the PHP pages to:
Doc_root=”/toolbox/webserver/wsdemos” Also change the ‘extension_dir’ setting to point to where the ‘php_*.dll’ files are placed:
Extension_dir = “C:/php/extensions” A few changes are required in the Apache configuration file:
LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .phtml In Apache 1.3.22 for Windows, the Apache default configuration file has a ClearModuleList directive included by default. If this directive is used, it is required to put an AddModule mod_php4.c to the AddModule list, as else PHP will not be registered as an Apache module.