运行 PHP 来自 erlang 的代码

Running PHP code from erlang

我正在尝试 运行 PHP 来自 erlang code.Can 的脚本有人用一个简单的例子解释一下吗? 我基本上是想通过这个 php 脚本在 google 服务器上放置一些数据。

自从 Erlang 网络服务器 (Yaws) 可以 运行 PHP 脚本,这是一个例子。

先上yaws.conf,写这个。 环境变量。

php_exe_path = /usr/bin/php-cgi

还要确保为单个服务器启用 php 处理,就像这样。

<server www.example.org>
        port = 80
        listen = 0.0.0.0
        allowed_scripts = php yaws cgi
</server>

Yaws will invoke the php-cgi binary and talk the CGI protocol to the binary.

就是这样,您可以 运行 PHP 将脚本写入 Earlang WebServers (Yaws)