[DUG] Processing PHP inside a Delphi ISAPI dll

Phil Middlemiss phil at tumonz.co.nz
Wed Aug 9 10:35:55 NZST 2006


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" <phil at tumonz.co.nz>
> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> 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" 
>>> <phil at tumonz.co.nz>
>>> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
>>> 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
>>>> Delphi at ns3.123.co.nz
>>>> 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
>> Delphi at ns3.123.co.nz
>> 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
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060809/46fe6449/phil.vcf


More information about the Delphi mailing list