hi,
I wanted to php compiler to download.What do I do?I have searched a lot in all the php sites.kindly guide me as to what files(extn)should I download?
hi,
I wanted to php compiler to download.What do I do?I have searched a lot in all the php sites.kindly guide me as to what files(extn)should I download?
First of all, there isn't a compiler needed to process PHP into an executable format like there is with C or Java. PHP is an interpreted language which means it's compiled at runtime by the interpreter (php.exe). If that's what you were thinking of, you're out of luck.... at lease until Zend releases a bytecode compiler (which I think is in the works). If that's not what you where thinking of, read on
There is a program called PHPCompiler, however:
1) the name is a misnomer, it's really an overlay manager... not a "compiler"
2) it's developer, Plot, dropped off the radar screen a copy months back.. consider it a dead project
3) it takes php and php-gtk scripts and tacks them onto the end of a copy of php.exe
4) it cannot buffer more than about 200 lines of script code (approx. 8 - 10 K when "compiling"
5) if scripts are longer than 8 - 10 KB, the exe produced fails because it's missing source code
6) you still need to distribute php.ini, php4ts.dll, and any extension dll's with the exe for the app to work
7) php apps are run in a DOS console, and all output is printed to that console
8) it does not work with versions of php-gtk later than 0.0.4
9) if you're still interested, it can be downloaded from:
http://phpuser.com/download/files/dev-tool/phpcompiler/
HTH.
geoff
actually, i'm also looking for the php compiler but the above link is not working.
can someone find a working link, please
tia
sam
:-)
looking for something? find it @:
Hmmm.... didn't realise the link was dead. I've tossed zip's of the binaries and source on my site. You can grab either, or both, from:
http://www.mithril.com/code/php/phpcompiler/
-geoff
geoff, you're a life saver.
thanks
:-)
i really appreciate it
i've searched everywhere on the net but couldn't find it earlier, thanks.
infact if you put that link in this forum, you'll get some serious hits since everyone seems to be wanting that compiler
sam
=====================
looking for something? find it @:
No worries......
Remember though:
It's not actually a compiler. It's an overlay manager that graft's a copy of your script onto a copy of php.exe.
It can't "compile" scripts over about 200 lines due to a very small buffer. Thus, script's over 200 lines must be broken down into include files. This means that at the moment PHPCompiler is not a viable method for creating obfuscated (sp?) app's.
You still need to distribute a copy of php.ini, php4ts.dll, and any extension or system dll's required by your script.
The developer, Plot, disappeared into the great unknown about 7 months ago and no one's heard of him since. Thus, consider this a dead project..... at least until I can get my hands on a copy of Visual C++ anyways..... I want to fix that damn tiny (and annoying) buffer size.
It's useless for web-deployed apps.... though this isn't what you want it for I know.
Enjoy!!
-geoff
actaully, that shouldn't be much of a problem since i only want to use it on my server for running scheduled scripts for things such as removing garbage sessions etc.
thanks geoff, you're very helpful.
:-)
i'll keep the .dll and .ini file in mind in case i need to use the script as a destribution - hmm, that idea has possibilities
sam
looking for something? find it @:
Hey if you can either give me the source with the modification or tell me what to modify in the source, I can do the compile for you.
Considering the options out there, this being having a limitation of size(which you say it can be fixed), would mean an advancement in what php can do.
You got the next closest thing called PBC over at sourceforge which is in beta and doesnt use objects. Then you got the Zend Encoder which you need to pay 2400 dollars to keep using it, plus have the Zend Optimizer to use it(dont get me wrong I love php but Zend is making some poor judgements with those two). This by far is the closest thing to a php compiler that is out there
So consider my proposal
PHP wasn't designed to be a compiled language. It's an interpreted language that provides for certain flexibilities (i.e. recursive name references for variables) that would be very difficult or impossible to implement via a true compiled language. As such, the overlay approach (actually loading a copy of php.exe and using it to run some type of encoded source code) would be the most viable approach for a PHP compiler (rather, a pseudo-compiler). Another approach would be to use Java's pseudo-compile scheme where one first compiles PHP code to intermediary byte code and then run some executable (i.e. a JVM)to process this intermediary code. This would lend some source-code protection while dramatically improving the speed of execution of PHP applications. Much like Java, the intermediary byte-code can standardized such that it can be platform independent.