Search found 4 matches

by ghandii
Monday 13 April 2020 17:16
Forum: PHP and all others
Topic: [Windows] Calling php script from dzVents
Replies: 6
Views: 3762

Re: [Windows] Calling php script from dzVents

I tried to use dir /TW with the Win10 command prompt, and get result.
However, it seems this must be hereafter parsed to convert this result into a timestamp (and use io.popen() instead?).
Anyway, works fine with c:/php/php.exe, any further would be fine-tuning...
G.
by ghandii
Monday 13 April 2020 15:04
Forum: PHP and all others
Topic: [Windows] Calling php script from dzVents
Replies: 6
Views: 3762

Re: [Windows] Calling php script from dzVents

ok was not so complicated...

1. downloaded and unzipped php binaires on a "c:/php" folder
2. add "C:\php" to the PATH system variable
3. and... that's it.

Works fine when I use the lua command os.execute("c:/php/php.exe c:/test/script.php")
However I do not understand why os.execute(" php c:/test ...
by ghandii
Sunday 12 April 2020 15:37
Forum: PHP and all others
Topic: [Windows] Calling php script from dzVents
Replies: 6
Views: 3762

Re: [Windows] Calling php script from dzVents

Hi Wareen,

indeed the purpose is to call a php script from a dzVent script. I've understood such is doable with lua / os.execute(), but I'm totally unclear on the prerequisite and syntax on Win10. I've read documentation and forum regarding this, but this is mainly based on Linux.

I've written a ...
by ghandii
Sunday 12 April 2020 12:10
Forum: PHP and all others
Topic: [Windows] Calling php script from dzVents
Replies: 6
Views: 3762

[Windows] Calling php script from dzVents

Hi,

my question coud be considered as implying a wide spectrum of answers, but I'm struggling to call php script in a lua (dzVents) script under Windows.
I've googled, tried to find relevant information in this forum, and I'm not able to find a tutorial for a dummy like me.
Specifically
- what ...