Yes, I initially thought that the TPageProducer would look after it itself by me just specifying 'PHP' as it's ScriptEngine property - but after looking through the code it seems that you have to build your own class to implement it.

Phil.

Todd Martin wrote:
Could you not shellexecute() the html script using php at the command line? Or is that what you meant by "use temporary files"?

Todd.

----- Original Message ----- From: "Phil Middlemiss" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
Sent: Wednesday, August 09, 2006 8:42 AM
Subject: Re: [DUG] Processing PHP inside a Delphi ISAPI dll


Yes, PHP4Delphi lets you execute a php script inside your app, but it
requires you to register all the variables that may be in the script.
Alternatively you can write a PHP extension in Delphi by using
PHP4Delphi. Neither is what I am after.

I was after a way to use an ISAPI dll as per usual, processing <#> tags,
but then process the result through the PHP engine to execute any PHP
script in the files. I could set up a proxy and use temporary files, but
I would rather find a cleaner way.

Cheers,
Phil.

Todd Martin wrote:
Not sure exactly what you're trying to do. Have you looked at PHP4Delphi?


----- Original Message ----- From: "Phil Middlemiss" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
Sent: Tuesday, August 08, 2006 2:54 PM
Subject: [DUG] Processing PHP inside a Delphi ISAPI dll


Hi all,

anyone know how I can process PHP code from within an ISAPI dll in
conjunction with a TPageProducer? I thought that setting the
TPageProducer.ScriptEngine to 'PHP' might do it, but it doesn't. Any
ideas?

Cheers,
Phil.



--------------------------------------------------------------------------------



_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 2/08/2006






--------------------------------------------------------------------------------


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



--------------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 2/08/2006



begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to