[DUG] Processing PHP inside a Delphi ISAPI dll

Todd Martin toddm at kol.co.nz
Wed Aug 9 11:06:30 NZST 2006


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



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



More information about the Delphi mailing list