Changes between Version 4 and Version 5 of ZooKernel/Embed/PHP


Ignore:
Timestamp:
May 6, 2011, 7:52:41 PM (14 years ago)
Author:
jmckenna
Comment:

update for readability

Legend:

Unmodified
Added
Removed
Modified
  • ZooKernel/Embed/PHP

    v4 v5  
    9393}}}
    9494
    95 As 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.
     95As you could seen above, there are lot of configure options used. 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 separated installation of php to not interfere with your possibly already installed PHP version.
    9696
    97 Once you 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 ends with success, you're now ready to compile and install the PHP embed library, using the following commands :
    9898
    9999{{{
     
    104104}}}
    105105
    106 == Simple PHP scripts loader ==
     106== Verify PHP Embed Install ==
    107107
    108 Here is the simplest code snipest ever shared. It was provided here as a sample to load and run php script from a C program :
     108=== Sample C Script ===
     109
     110The following C script  loads and runs a PHP script. Save the file as ''test_phpembed.c''
    109111
    110112{{{
     
    144146}}}
    145147
    146 == Compile the code snipest ==
     148=== Compile the code snippet ===
    147149
    148 Now that you get the file test_phpembed.c, you must compile it using the following commands :
     150Now that have the file ''test_phpembed.c'' you must compile it using the following commands :
    149151
    150152{{{
     
    154156}}}
    155157
    156 You should succeed runing the command above, if not please open a ticket to inform us that there are mistakes in those instructions :)
     158The above commands should produce the ''test_phpembeded.o'' file and the ''test_phpembeded'' program with no errors.
    157159
    158 == Run the code snipest ==
     160=== Run the code snippet ===
    159161
    160 The last step to get your PHP embeded in your C program is to write a small php piece a .... code :)
     162The last step to get your PHP embeded in your C program is to write a small PHP code by:
    161163
    162164
     
    168170}}}
    169171
    170 Here 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 :
     172No we can run the ''test_phpembeded'' program to see if it's able to load and run the PHP script called info.php:
    171173
    172174{{{
     
    175177}}}
    176178
    177 Note 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).
     179Note 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 interfere with your already installed php library). Nevertheless, when ZooKernel will be compiled you only have to 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 does something like that also).
    178180

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