B4J Question Can you run a PHP script on a Websockets (Jetty) server?

aminoacid

Well-Known Member
Licensed User
Longtime User
I have a B4J websocket server application and I would like the server to run a PHP script.

Is this possible?

The way it is at the moment, the server does not recognize the PHP file as a script and simply displays the contents in the browser.

Any guidance would be greatly appreciated.

Thanks!
 
Is this possible?
not directly. Asuming php is installed on the server the jetty-server is running on you can use jshell to start php.exe and wait for the result. Note that you have to use the php-commandline-interface. See PHP documentation.
 
Last edited:
Upvote 0
Back
Top