There are no categories at this time
» There is no news yet
We hope you enjoy your visit here. Please join or login if you have joined before.
This stream is from ocPortal.com
We've recently switched our site over to Facebook's re-implementation of PHP, HipHop PHP ("HPHP"). This is a PHP compiler that gives over 2x speed improvements. As we're one of the first sites other than Facebook to implement this, it's been a bit of a case of navigating the stormy early-adopter waters.
After sorting out our source code a few months ago to be able to run on HPHP, we've now actually gone through the process of finding (and working around) all the little bugs HPHP has. I've found and reported about 30 now. Right now there's certainly a need for caution and care in adoption if you're moving over an existing code base. This blog post will talk about some of the things a programmer should do (lessons I've learnt), beyond the obvious need for them to make sure that their codebase meets HPHP's restraints (no 'eval', etc).
location /whatever {
...
error_page 502 = @fallback;
}
location @fallback {
...
}
Right now I would suggest just running HPHP in a loop...
while true; do
sudo ./program (...) >> data_custom/errorlog.php
date >> data_custom/errorlog.php
done
Copyright ocProducts Ltd, 2010
» There is no news yet
"Each problem that I solved became a rule which served afterwards to solve other problems", Rene Descartes
Galleries home (0 images, 0 videos)
» There are no categories at this time