Changes between Version 1 and Version 2 of ZooKernel/Embed/PHP


Ignore:
Timestamp:
Apr 22, 2010, 11:21:44 AM (14 years ago)
Author:
nicboz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooKernel/Embed/PHP

    v1 v2  
    11= ZooKernel/Embed/PHP description page =
    22
    3 You get lot of allready existing php code and need to use this code with the less modifications possible ? Then this page was made for you :)
     3You get lot of existing php code and need to use it as ZOO Service with the less modifications possible ? Then this pageis made for you :)
    44
    5 On this page you will find everything you have to know to be able to implement your services directly in PHP.
     5On this page, you will find advices to implement your services directly in PHP.
    66
    77== Configure and Install PHP Embed library ==
    88
    9 First thing you have to get is a fresh and independant php library installed on your system.
     9First thing you need is a fresh and independant php library installed on your system.
    1010
    11 Here is a sample configure call to ensure to be able to use the PHP support on your platform :
     11Here is a sample configure call to ensure the PHP support on your platform :
    1212
    1313{{{
     
    9595As you could seen above, there are lot of configure options used. Lots options are not required. Nevertheless, two configure options are required to get a full PHP support in your ZooKernel : '''--enable-embed''' and ''''--enable-maintainer-zts'''. You should also note that the php library will be installed in the {{{/usr/lib/php5.2.10}}} directory, as we need a well sperated installation of php to not interfere with your possibly allready installed PHP version.
    9696
    97 Once your configure script end with success, you're now ready to compile and install the php embed library, using the following commands :
     97Once you configure script end with success, you're now ready to compile and install the php embed library, using the following commands :
    9898
    9999{{{
     
    146146== Compile the code snipest ==
    147147
    148 Now that you get the file test_phpembed.c, you have to compile it before trying to run. You could use the following commands to  achieve that compilation process :
     148Now that you get the file test_phpembed.c, you must compile it using the following commands :
    149149
    150150{{{
     
    154154}}}
    155155
    156 You should succeed runing the command above, else open a ticket please to inform us that there is issue following those instructions :)
     156You should succeed runing the command above, if not please open a ticket to inform us that there are mistakes in those instructions :)
    157157
    158158== Run the code snipest ==
    159159
    160 The last step to get your PHP embeded in yoru C program is to write a small php piece a .... code :)
     160The last step to get your PHP embeded in your C program is to write a small php piece a .... code :)
    161161
    162162
     
    168168}}}
    169169
    170 Here we are, we now run the test_phpembed program to see if it was able to load and run the php script called info.php :
     170Here we are, we now run the test_phpembed program to see if it's able to load and run the php script called info.php :
    171171
    172172{{{
     
    175175}}}
    176176
    177 Note that we have to set the LD_LIBRARY_PATH at runtime as we didn't install the php embed library in a stadard fashion (not in the standard search path - /usr/lib or /usr/local/lib- to ensure that we don't interfer with your allready installed php library). Neevertheless, when ZooKernel will be compiled you only have  ot run it once, so you could use a small batch file including this LD_LIBRARY_PATH and other required parameters when you launch your ZooKernel instance (note that firefox do something like that also).
     177Note that we have to set the LD_LIBRARY_PATH at runtime as we didn't install the php embed library in a standard way (not in the standard search path - /usr/lib or /usr/local/lib- to ensure that we don't interfer with your allready installed php library). Neevertheless, when ZooKernel will be compiled you only have  ot run it once, so you could use a small batch file including this LD_LIBRARY_PATH and other required parameters when you launch your ZooKernel instance (note that firefox do something like that also).
    178178

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png