A. Build and Install Asterisk as normal.
B. Build PHP with Asterisk support
	1. Copy source to sapi folder
		cp -R sapi_php <path_to_php_source>/sapi/asterisk
	2. Rebuild PHP conf system.
		cd <path_to_php_source>
		buildconf --force
	3. Configure Asterisk into PHP.  A separate php installation is recommended.
		./configure <normal options> --enable-asterisk=shared --prefix=/usr/local/php4
	4. Build PHP
		make
	5. Install PHP
		make install
	6. Install php_asterisk.h
		cp sapi/asterisk/php_asterisk.h /usr/local/php4/include/php/main/
	7. Make sure the php library is configured in /etc/ld.so.conf.  Run ldconfig after editing /etc/ld.so.conf.
C. Build Asterisk with PHP support.
	1. Copy res_php.c to res folder
		cp res_php.c <path_to_asterisk_source>/res
	2. Patch res/Makefile (see res_php/Makefile.diff
		patch <path_to_asterisk_source>/res/Makefile Makefile.dif
	3. Update Makefile, make sure the path to php-config is correct.
	4. Build and install Asterisk as normal.
	5. Add load => res_features.so to modules.conf
D. Test it.
	1. From the CLI: show application PHP
	2. Create /tmp/test.php (see test.php)
	3. Add to an extension:
		exten => 1234,1,PHP(/tmp/test.php|hello|world);
	4. Dial 1234
	5. Look at /tmp/test.php.out
E. Use it and report problems or feature requests.
