For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > August 2005 > using php5ts.dll









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using php5ts.dll
Jure Erznoznik

2005-08-12, 8:59 am

Hi guys,

Could someone please tell me where I can find information on using
php5ts.dll?
I'm trying to integrate PHP into my application. I started with Perevoznyk's
IdPHPRunner (I'm using Delphi), but his components make my APP create some
HUGE memory leaks (like some 130KB per call). I'm currently using PHP 5.1b3.

After serarching for a w I must admit I don't know where else to look. I
browsed through much of php.net, googled a lot, tried to find other
components for delphi... I downloaded the source for php too, but must admit
that I can't read it too well.

What I really need is some guide saying:
To load the lib, you need to call this and that and that with such and such
parameters...
To process a request, these functions have to be called with these
parameters.
Remember to call this to clean up after you're done.

Now I know this is asking too much so I'd be quite happy with a list of
functions exported in the dll and some explanation about what they do.

I'd really appreciate any help regarding this,
Jure



Andy Hassall

2005-08-18, 5:56 pm

On Fri, 12 Aug 2005 14:42:21 +0200, "Jure Erznoznik" <jure_kill_spam@jantar.si>
wrote:

>Could someone please tell me where I can find information on using
>php5ts.dll?
>I'm trying to integrate PHP into my application. I started with Perevoznyk's
>IdPHPRunner (I'm using Delphi), but his components make my APP create some
>HUGE memory leaks (like some 130KB per call). I'm currently using PHP 5.1b3.
>
>After serarching for a w I must admit I don't know where else to look. I
>browsed through much of php.net, googled a lot, tried to find other
>components for delphi... I downloaded the source for php too, but must admit
>that I can't read it too well.
>
>What I really need is some guide saying:
>To load the lib, you need to call this and that and that with such and such
>parameters...
>To process a request, these functions have to be called with these
>parameters.
>Remember to call this to clean up after you're done.
>
>Now I know this is asking too much so I'd be quite happy with a list of
>functions exported in the dll and some explanation about what they do.


I remember looking at this before, and found it to be underdocumented.

There's the php_embed SAPI that you're supposed to use for this, I believe.

It's not much help, but this presentation about embedding PHP in MySQL was
about the best starting point I could find, IIRC.

http://talks.php.net//slidelist.php
http://www.sklar.com/page/article/myphp

And:

http://www.zend.com/lists/php-dev/200209/msg01063.html

Here's where it last came up:


http://groups.google.co.uk/group/co...6cb0d03160aabc6

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com