How to run a php script on fpm via cli/php? -


I am doing a little research after searching and want to know that it is possible to run PPP scripts directly through CPI Is / php

There are two workers implementations for Java and Ruby, which ultimately tells FPM from some parameters and I think it should be possible with php, right?

Here snippet from java employee:

  FCG connection connection = FCGIConnection.open (); Connection.connect (new InetSocketAddress (message.getHeader ("fastcgi_host"), integer.parseint (message.getHeader ("fastcgi_port"))); Connection.beginRequest (PathResolver.resolve (message.getHeader ("dispatch_path")); Connection.setRequestMethod ("post"); Byte [] PostData = ("DEFERRED_DATA =" + message.getData ()). GetBytes ();   

To send stuff to FP, there is a command called cgi-fcgi ():

  SCRIPT_NAME = / ping \ SCRIPT_FILENAME = / Ping \ REQUEST_METHOD = Gate \ cgi-fcgi -bind -connect 127.0.0.1:9000   

Is there a library or integrated function to do this?

I integrate the shell function into php, but I hope there is another way to do this.



Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -