Re: Running PHP from inside another application!

From: Date: Tue, 15 Feb 2005 14:48:44 +0000
Subject: Re: Running PHP from inside another application!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208725@lists.php.net to get a copy of this message
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: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#208725) next »