将PHP转换为C ++代码 [英] Convert PHP to C++ code

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

问题描述

我在寻找一种将PHP代码转换为C ++的方法。有几个原因我想这样做:

I'm looking for a way to convert PHP code to C++. There are a few reasons I want to do so:

主要原因:有很多伟大的PHP工具/软件,我想使用和纳入进入C ++ GUI或非GUI应用程序


  1. 提高性能

  2. 依赖PHP库

  3. 避免在共享主机环境中公开源代码

  4. 要获得C ++语言特性的支持,并使用像Qt C ++和Poco

  1. To boost performance
  2. To avoid dependency on PHP libraries
  3. To avoid disclosing source code on shared hosting environments
  4. To be empowered by C++ language features and make use of frameworks like Qt C++ and Poco

到目前为止,我发现:

http://sourceforge.net/projects/binaryphp

http://www.mibsoftware.com/php2cpp/

请分享您的想法和你知道的工具。提前感谢!

Please share your ideas and tools that you know. Thank you in advance!

编辑:
我还需要跨平台可操作性和$$,语法糖功能和接口。

I also need cross-platform operability and good match for $$, syntactic sugar functions and Interface.

编辑:
请注意,上述2种工具使用两种不同的方法。前者有内置的库来转换PHP程序代码并使其运行。

Please note that 2 aforementioned tools use 2 different approaches. The former has built-in libraries to convert PHP procedural code and make it run. The latter translates (word by word) from PHP to C++.

推荐答案

这可能会在短期内变得有趣:

This might also get interesting in a short while:

https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/

这是什么保持Facebook活着;)
一种技术,翻译&编译php到C ++,并打算去开源。
我期望它被真正很好的测试。

It's what keeps facebook alive ;) A technology that translates & compiles php to C++ and is going to go open-source. I expect it to be really well tested.

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

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