1.4.5. PHP

PHP, the Hypertext Pre-Processor is required in order to run the application. PHP versions older than 5.1.4 have not been tested with BMFO 1.2.0.

[Caution] Caution

Please install the zipfile distribution (windows binaries zip file)of PHP, not the installer version. Also install the PECL modules.

Notice the difference between the PHP installer and the BMFO Scripting installer.

PHP is available from http://www.php.net. The following page provides the required package (version 5.1.4): http://www.php.net/get/php-5.1.4-Win32.zip/from/a/mirror

Extract the zip file to c:\windows and rename the folder php-5.1.4 to php.

At least the following PHP extensions have to be loaded:

1.4.5.1. php.ini

The php.ini file should be edited accordingly. The important settings are summarized below:

[PHP] 

max_execution_time = 300
     
extension=php_dbase.dll
extension=php_dbx.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_iconv.dll
extension=php_oci8.dll
extension=php_pgsql.dll

[mail function]
SMTP = igwa_2
sendmail_from = bmfoadministrator@ngwa.com.jo
  
[Caution] Caution

Remember to adjust the php.ini settings according to your needs.

PHP should serve the pages with UTF-8 encoding. This can be achieved by adding the following line to php.ini:

  default_charset = "utf-8";
	

Make sure that session support is enabled, by adjusting the following line:

  session.save_path=c:\tmp
	

Make sure that the temporary directory c:\tmp exists.

The PHP installation can be completed with the following three lines in httpd.conf:

ScriptAlias /php/ "c:/windows/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"