What ���� ����:

  1. ��������������s php 5.x ����� Tomcat 4.x � 5.x
  2. �������� php ���� ���� ���s web ������, ���� ��� ���������.


The ���� ������ configuration is ����������. The ��������� ����� terse ���������� ���� ��� intelligence.

����s �� ������� php �� �� ����� ����������� ���� c:\ �����. ������������ �� ����� ������ ��� ���� ��� choice.

������s

  1. �������� ���� php 5.x zip ������.
    ��� ���������������http:/www.php.net/������/php-5.0.2-Win32.zip/ ���/ ���s/ ��������s/ .
  2. �������� ���� ������� ��� PECL ������� ��������. ��� ���������������http:/www.php.net/������/pecl-5.0.2-Win32.zip/ ���/ ���s/ ��������s/ .
  3. Unzip php 5.x zip ������ ����������, �������� cphp:\
  4. ��������� php.ini- ��������, ���� cphp:\, ���� php.ini
  5. ����������� the ���� ( ���������� semi- ����� ��� beginning) ���� php.ini:
    extensionphp_java.dll;=
  6. ��������� php5servlet.dll ��� pecl zip ������ �� cphp:\ (Uncheck " ����� ������� �����" ���� WinZip).
    ���������� ��� the ������ is ���������� �������� ���� cphp:\
  7. ��������� Tomcat ��� ��������� ���s ��������� ���� webapps. Lets ��� ����� ����� fun.
  8. ��������� WEB-INF ��������� ���� fun
  9. ��������� lib ��������� ���� WEB-INF
  10. ��������� web.xml ���� WEB-INF ���� �� �������� �����������:
    
    
    
    
    	php
    		net.php.servlet
    	
    	
    		php- �����
    		net.php.formatter
    	
    	
    		php
    		*.php
    	
    
    	
    		php- �����
    		*.phps
    	
    
    			
  11. ��������� php5srvlt.jar ��� ���������/unjar ( ���� xvf …) ���� ���� c:\
  12. ��������� ��������� the ������ reflect.properties ��� servlet.properties �� ������ the ���� libraryphpsrvlt= �� libraryphp5servlet= ��� ���� ������. This ���������� the ����� ������� ��� dll ������ � ������ is ������� �� �� Java ������ ������� the ������. ���� my ������ the ����� ��� dll was php5servlet.dll. ���� ��� ���� ����� �������. This ���� ��� ������� ���� �� ����� ��� ���� ������ � ������ ����� �� ����� ���������.
  13. Re- ��������� the ���� ������
  14. ��������� the ���� ������ �� WEB-INFlib\ ��������� ����������� ��������
  15. �������� cphp:\ �� ���� ��� ������� � User ��������� ���� Windows enironment (Hint: ������- ���� ��� ������� ����������, ��������� ��� My ����������s)
  16. ��������� ���s ������ test.php ���� fun ���� �� �������� code:

  17. ���� Tomcat ( ������� ��� [Tomcat ����������� ���������]\ ��� ������������ Tomcat).
  18. ������ ���� ��� ����� ��� ������� ��� http:/localhost8080:/fun/test.php
  19. /
  20. ���������� ��� �������� ��� errors �������. ���� you ������ ���s ���������� ����� �� php ������ ���������� ��� ��������� lot ��� �����������

��s ��� ��� this ������� is ������� �� you.

������������ ���������� ��������� ��������� �� highlight ������ ������ elements.

������ �� ������ �������� ��� users:
������������ is getting this error “java.lang.UnsatisfiedLinkError: ��� php5servlet ���� java.library.path”. �������� ������� �� ��� ����������, ��������� ������, ���� ����� �������� ������������ ���� ��������. ��� was stuck �� ���� �������� ��� 2 ������. ���� �� �� ����� ���� ���s ����, ��� ��� ���� ��������. ������ ���� ����!!!. ���� ����� ��� the �������� is ������.
–Arundhati

The ������ ��� php ��� pecl �������� �� ����� �� ����.
–Mirek Mocek

You ������ ���� �� �������� ���s ���������� ����� ��� ����� ��� ���� ��� ������s. ���� �� �������� ���� ��� the �������� ���� �� unsatisfied ��������� errors.
– ���� �������������� ��� ������� Rosendahl

��������:
��� you ������ this ������������������ ��������, �������� ����� ����� ��� ���������� the ����������� ��� giving.