[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

compiling php as cgi binary

How can I compile php 5.4.7 as a cgi binary?
0
Naresh
Asked:
Naresh
  • 3
1 Solution
 
Hugh McCurdyCommented:
Historically, there wasn't a true PHP compiler.  There was an obfuscator called a "compiler."

More recently, Facebook developed hiphop.  Perhaps that's what you want.

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

http://en.wikipedia.org/wiki/HipHop_for_PHP

You might also want to look at

http://en.wikipedia.org/wiki/Phalanger_%28compiler%29
0
 
Hugh McCurdyCommented:
You question also leads to the question of what do you want to accomplish?  Or why?  Knowing the why is critical to helping someone find a good solution.
0
 
NareshSystems AdminAuthor Commented:
#hmccurdy : I am creating a shared environment where i can put separate cgi binary file for individual users for testing purpose.
0
 
Hugh McCurdyCommented:
One idea, if you want to use regular PHP would be to have PHP include different include files based on the user.  

Also, depending on what you are doing, could you just write a C++ (or whatever) CGI instead?  It might be simpler.  (Depends on why you are processing PHP in the first place.)
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now