Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Launch a PHP script including a SQL command

If you have a question or need help, this is the place to be.
Post Reply
fred38
Posts: 9
Joined: Mon Apr 29, 2013 7:21 pm

Launch a PHP script including a SQL command

Post by fred38 »

Hi !

Need the help to someone to store datas in SQL database

I am lauching a PHP script every minute to store some data in a SQL database. I use the Timer plugin with a macro-command and a start program.

- <Macro Name="Start Program: php-win.exe" Expanded="True">
<Action>System.Execute(u'C:\\UwAmp\\bin\\php\\php-5.3.5\\php-win.exe', u'script.php', 0, False, 2, u'C:\\UwAmp\\www\\domotique\\domotiquestudio1\\ipx800', False)</Action>
</Macro>

The script works well but fail when I try to store the data in the SQL database. i don't know why. I suspect a question of path but am not sure.

Nota : my script worls perfectly when I use another trigger coming from another device.

Thanks for the help !
Fred
Post Reply