Comment 4 for bug 191251

Revision history for this message
Paul (paul-biggar) wrote : Re: [Bug 191251] Re: [needs-packaging] php5-embed

Hi Nicolas,

There is a presentation here that explains it:
www.cluesheet.com/lectures/phptek-embedding.pdf.
There is a more detailed guide to programming with it here: http://phi.lv/?p=376

I guess to test it you would compile and link a program against it.
Here is a sample program:

http://code.google.com/p/phc/source/browse/trunk/misc/old/tryout.c

Once the package is installed (in /usr/local), you should be able to
compile it with:

gcc -I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
-L/usr/local/lib -Wl,-R/usr/local/lib -lphp5 tryout.c

I've tested this on Hardy, and it compiles fine. You may need to use
/usr/include instead of /usr/local/include.

Thanks,
Paul

On Wed, Aug 20, 2008 at 10:15 PM, Nicolas Valcárcel (nxvl)
<email address hidden> wrote:
> Can you please give some documentation (a link to) about what is
> actually embed and/or some tests to check my package please
>
> ** Changed in: php5 (Ubuntu)
> Assignee: Nicolas Valcárcel (nxvl) (nvalcarcel) => (unassigned)
>
> --
> [needs-packaging] php5-embed
> https://bugs.launchpad.net/bugs/191251
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Paul Biggar
<email address hidden>