[DUG] Processing PHP inside a Delphi ISAPI dll

Phil Middlemiss phil at tumonz.co.nz
Wed Aug 9 11:21:06 NZST 2006


It's shared PHP code amongst a couple of different setups, so ideally I 
would like to process it as is. I can't see any way out of this except 
using shellexecute or an Indy TidHTTP component to process a temporary file.

Phil.

Todd Martin wrote:
> Are you wanting to execute PHP scripts written by yourself or by third 
> parties?
> If the former, you could (re)write your scripts in paxPascal and use 
> the paxScript interpreter in your ISAPI dll to execute the script.
>
> 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 10:35 AM
> Subject: Re: [DUG] Processing PHP inside a Delphi ISAPI dll
>
>
>> 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
>>>
>>>
>>>
>>
>
>
> -------------------------------------------------------------------------------- 
>
>
>
>> _______________________________________________
>> 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/f7b1bc57/phil-0001.vcf


More information about the Delphi mailing list