转换PHP文件为二进制 [英] Convert PHP file to binary

查看:210
本文介绍了转换PHP文件为二进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能一个PHP文件转换为二进制和部署在Web服务器?

Is it possible to convert a PHP file to binary and deploy it on a webserver?

推荐答案

由于PHP是一种(相对)可移植的语言,编译PHP源字节code,而不是二进制code更preferable。为此,有一个名为字节码编译。您还可能有兴趣 phpc

Since PHP is a (relatively)portable language, compiling PHP source to bytecode instead of binary code is more preferable. For this purpose there is an experimental project called bcompiler. You may also interested in phpc.

这篇关于转换PHP文件为二进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆