11-11-2016 04:06 PM
Does the LabVIEW web Server understand PHP?
11-11-2016 04:14 PM
Unfortuanately no. it uses a compiled version of EmbedThis Appweb under the hood, and it doesn't support PHP. I've looked in to this quite a bit and couldn't figure out a way to add it, so if you figure something out please let us know!
11-11-2016 04:26 PM
it would have been very useful, i am trying to use mySQL on a cRIO that is running a LabVIEW web server and PHP would have been very helpful. i am using "system exec.vi" to interact with the database (basically using the Linux RT shell) as the DB connectivity toolkit is not supported on RT targets.
11-11-2016 04:47 PM
It looks like the source for Appweb is available and PHP support can be added via an addition at compile time. https://embedthis.com/appweb/doc/start/source.html
However, it looks like the NI isn't using the compiled version directly. Maybe it is just renamed, but I'm guessing that source for Appweb is embedded into a larger NI exe.
11-11-2016 05:22 PM
I've explored this route with no success.
11-11-2016 05:23 PM
This was my use case as well. Hopefully good things will come in the future that will allow for this.
11-11-2016 07:52 PM
Depending on your application/use case, a potential solution for this is to add another host as a reverse proxy, put the cRIO on a private network behind the host. Then you can setup IIS/apache/etc and use whatever scripting language you like. This would also give you a more "normal" means to access MySQL from php if you don't need that data on the cRIO directly.