A friend of mine told me recently "to optimize your site you may want compile your php files" and i was like "what?"
I honestly i never heard of that, i'm a "advanced-naive" programmer, that means i'm self taught, i built complex sites but i'm still missing something...
Bottom line:
what does it mean compile php? convert them in exe files? why? is faster?
While PHP code needs to be interpreted on every call, bytecode is precompiled code that runs almost instantly. Mostly you will only really need it, if you are running a larger website.
The following tools can be used to compile scripts or run compiled scripts:
Unless you're after serious performance then compiling PHP using something like Facebook's HipHop is probably a bit excessive.
I'd just install/configure Alternative PHP Cache (APC) on your machine which will cache the compiled bytecode and should give you an instant performance boost.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With