Go 嵌入 PHP 脚本:GoEmPHP

WBOY
Release: 2016-06-23 13:33:22
Original
1888 people have browsed it

GoEmPHP 可以让你在 Go 程序中嵌入 PHP 脚本。

示例代码:

script = php.New()script.Startup()defer script.Close()if err := script.Eval("phpinfo();"); err != nil {    log.Fatal(err)}if err := script.Exec("foobar.php"); err != nil {    log.Fatal(err)}
Copy after login

项目主页:http://www.open-open.com/lib/view/home/1433317858775

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!