PHP Code Compiling

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
mwalstra
Forum Newbie
Posts: 2
Joined: Thu Aug 28, 2008 7:06 am

PHP Code Compiling

Post by mwalstra »

Hi there,

We are currently running a linux server that has our php code on it. The requirement has come up that we compile the code.
Does anyone know of any utils out there that we may use to compile the code on the linux machine?

Thanks in advance
Matthew
chakhar86
Forum Commoner
Posts: 45
Joined: Mon Jun 05, 2006 1:36 am
Contact:

Re: PHP Code Compiling

Post by chakhar86 »

See, PHP is intepreter language so it doesn't have to compiled.
If you want to run a PHP code just pass it to PHP engine, on linux just install PHP packages as you need (it may be deb, rpm or even source code (tarball) package, just pick what you needed)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP Code Compiling

Post by onion2k »

mwalstra wrote:Does anyone know of any utils out there that we may use to compile the code on the linux machine?
Zend encoder (now known as Zend Guard I think) or Ioncube. I think there's a free one as well but I have no idea what it's called.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: PHP Code Compiling

Post by Mordred »

I haven't tried it, but here's one that claims to compile to native machine code (not interpreted bytecode as zend an ion):
http://www.roadsend.com/home/index.php?pageID=compiler
mwalstra
Forum Newbie
Posts: 2
Joined: Thu Aug 28, 2008 7:06 am

Re: PHP Code Compiling

Post by mwalstra »

hi onion2k & mordred thanks for those i shall be looking into that.
charkar86 i need it to be compiled for security purposes. :)
Post Reply