Re: launch a php script from a trigger function

[email protected] Tue, 30 Mar 2010 09:20:20 -0400
Newsgroups gmane.comp.db.postgresql.php
Message-ID <OFA89AB12C.31FA6A72-ON852576F6.0048F5F0-852576F6.004945FB@isn.rtss.qc.ca>
Thanks Randy,
The php script I need to send does not have effect on the transaction. Per 
example I don't need a rollback in the database if the php script fails.

Is it possible to launch a batch file ( ex. test.bat ) 
Steve





Randy Moller <[email protected]> 
29/03/2010 04:42 PM
Veuillez répondre à
[email protected]


A
[email protected]
cc

Objet
Re: [PHP] launch a php script from a trigger function








It is not possible to execute a script from a database. a php script can 
be executed by a server daemon or scheduled cron, by cli on a terminal, 
or, via http (over the web) through a browser. But the php parser does 
not respond to commands by any database.

Hope this helps.

Randy

[email protected] wrote:
>
> Hi,
> I have little experience with postgres.
> I successfully created a trigger function who does basic stuff such as 
> UPDATE another table.
>
> Now, I need to launch a php script from that trigger, something like 
> php test.php.
>
> Is it possible to do that?
> thanks
> Steve
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.791 / Virus Database: 271.1.1/2777 - Release Date: 03/29/10 
00:32:00
>
>