Re: Running PHP from inside another application!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mikael Andersson wrote:
Hi,

I've a case where I have to run a lots of php-scrips, in a short time, from
inside a delphi-application. Every script connects to the same databas.
Today I use CreateProcess to start php.exe and then I'm using pipes to get
the php-result. I'm doing this for each php-script I want to run, and it's
timeexpensive because every script has to establish a database-connection.

I'm new in the PHP-world, but I'm sure that there is a better way to solve
this case.

There is. :) From what you say I think the Embed SAPI will be a good way for you to go - it allows you to embed a PHP parser within another application. *NOTE* This is not for the faint of heart!


-- Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux