Azu Posted November 6, 2007 Share Posted November 6, 2007 Hello I know that there are easy ways to compile PHP into a stand alone executable in 32bit.. but does anybody know of a program that works for doing this in XP 64bit with 64bit PHP so that it will generate a 64bit executable? P.S. Yes I have searched but haven't been able to find any for 64bit it seems that most people who make software hate us 64bit users lol.. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 6, 2007 Share Posted November 6, 2007 32bit will still work on 64bit system.. not useful i know.. just wanted to remove some of the hate Quote Link to comment Share on other sites More sharing options...
Azu Posted November 21, 2007 Author Share Posted November 21, 2007 Thank you 32bit PHP doesn't run on my webserver though, so I'm guessing a 32bit PHP exe also wouldn't. In case you're wondering why I want to have PHP be a pre-compiled EXE instead of compiling on page request.. it usually takes between 400 and 1200ms for the PHP script to compile, and between 1 and 20ms for it to run. So I'd really like to find a way to make it pre-compiled so there won't be a compile time on page request. Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 PHP does not compile on page requests. What on earth are you talking about? Quote Link to comment Share on other sites More sharing options...
mediasix Posted November 21, 2007 Share Posted November 21, 2007 32bit PHP doesn't run on my webserver though ??? I have WAMP installed on my XP x64 with PHP and that works just fine...... Quote Link to comment Share on other sites More sharing options...
sayedsohail Posted November 21, 2007 Share Posted November 21, 2007 Madtechi, My apologies, i just wish to know how to compile or which is the most recommened tool to compile php files. Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 This is a descusssion regarding compiling the php interpretor itself, not php scripts. Well actually it seems a mix of both. Quote Link to comment Share on other sites More sharing options...
Azu Posted November 21, 2007 Author Share Posted November 21, 2007 Actually I am just wandering how to compile my PHP file so that it won't have to be compiled on every page view. It's a single file called index.html and 272kb in size. Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 For that, you'll want whats known as an opcode cache. apc is the only one Ive used and is free, I'm pretty sure zend offer one as well. Quote Link to comment Share on other sites More sharing options...
Azu Posted November 21, 2007 Author Share Posted November 21, 2007 Thanks. I tried the APC thing, but I think there is a problem. In my php.ini file I have extension=php_mysqli.dll extension=php_apc.dll I have the php_mysqli.dll file and the php_apc.dll in the same directory as that. But when I try to open a page, an error pops up saying it can't load the php_apc.dll file. I commented the APC line and it works fine. I renamed my php_mysqli.dll file and I get the same error (but with php_mysqli.dll instead) so the problem is that the file isn't there right? But it IS there! So I'm not sure what to do about that. And I'm not sure how to get the Zend thing to work either.. my page loads with it but I get an error in the console Failed loading E:\ZendExtensionManager.dll 2007-11-21 13:37:07: (mod_cgi.c.1231) cgi died ? and it doesn't seem to work (no speed increase) Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 Sorry, I'm not a windows user so can't really help you with your apc issue. I'm also not sure youve got the correct zend product. Looking at there site it would appear there opcode cache is part of platform which is not a free product. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 21, 2007 Share Posted November 21, 2007 There's a chance you have multiple directories where the .dlls should be installed? For example a distribution might have one directory for php5 .dlls and one for php4 .dlls. Make sure you put the .dll in the one your PHP is using. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.