INSTALL 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Installing of XXTEA PHP package.
  2. There are many ways to build the package. Below you can find details for most
  3. useful ways of package building:
  4. 1. with PHP
  5. 2. with phpize utility
  6. 3. under Windows using Microsoft Visual C (.NET or VC6)
  7. -----------------------------------------------------------------------------
  8. Way 1: Building the package with PHP
  9. -----------------------------------------------------------------------------
  10. 1. Create ext/xxtea folder in the php-source-folder. Copy all files
  11. from the package into created folder.
  12. 2. Run
  13. ./buildconf
  14. to rebuild PHP's configure script.
  15. 3. Compile php with option:
  16. --enable-xxtea to build bundled into PHP module
  17. --enable-xxtea=shared to build dinamycally loadable module
  18. -----------------------------------------------------------------------------
  19. Way 2: Building the package with phpize utility
  20. -----------------------------------------------------------------------------
  21. 1. Unpack contents of the package.
  22. 2. Run
  23. phpize
  24. script, which will prepare environment for building XXTEA package.
  25. 3. Run
  26. ./configure --enable-xxtea=shared
  27. to generate makefile
  28. 4. Run
  29. make
  30. to build XXTEA extension library. It will be placed into
  31. ./modules folder.
  32. 5. Run
  33. make install
  34. to install XXTEA extension library into PHP
  35. -----------------------------------------------------------------------------
  36. Way 3: Building the package under Windows using Microsoft Visual C (.NET or VC6)
  37. -----------------------------------------------------------------------------
  38. 1. Create ext/xxtea folder in the php-source-folder. Copy all files
  39. from the package into created folder.
  40. 2. Copy php4ts.lib (for PHP4) or php5ts.lib (for PHP5) static library from
  41. your version of PHP into ext/xxtea folder.
  42. 3. Open php_xxtea.sln - solution file under MSVC.NET or php_xxtea.dsw -
  43. workspace file under MSVC6. Try to build Release_php4 (for PHP4) or Release_php5
  44. (for PHP5) configuration.
  45. 4. Copy php_xxtea.dll from ext/xxtea/Release_php4 or ext/xxtea/Release_php5
  46. into {extension_dir} folder. Path to {extension_dir} can be found in php.ini
  47. 5. Add line
  48. extension=php_xxtea.dll
  49. into php.ini