lnetwalker / openMSR

Instrumentation,Control, Automation Tools like PLC and others
https://www.openmsr.org/
2 stars 1 forks source link

Webserver execute PHP script #48

Closed lnetwalker closed 5 years ago

lnetwalker commented 5 years ago

run PHP scripts on webserver php test fails (http://localhost:10080/phpinfo.php) see https://www.freepascal.org/docs-html/fcl/process/runcommand.html and also CommonHelper.pas.

lnetwalker commented 5 years ago

after adding SendPage, the error is gone but there is no output still investigate!!

lnetwalker commented 5 years ago

running with changes in commit d553bf487cacfa10dbf8698f4142b1747707fdf8

lnetwalker commented 5 years ago

the above solution only works with fpc 3.0 in our build pipeline we are working with fpc 2.4 which doesn't know the command!

lnetwalker commented 5 years ago

fixed with commit d58c82acd82250500072ef1a8f2ef578a300c0fe written own procedure to exec PHP stuff