Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Compiling for 64 bit?
March 26, 2008, 5:40 am
rate this thread
that is 64 bit. The main problem I have is I need 64 bit integers so
I have 2 questions:
If I compile PHP for 64 bit, do I need to compile Apache in 64 bit
also? (My VPS came with everything installed as 32 bit except for the
OS, it is 64 bit. So, ideally, I would not like to have to go through
Where would be the best place to look for a precompiled PHP5 for
Solaris 64 bit?
- The Natural Philosopher
March 26, 2008, 6:50 am
Re: Compiling for 64 bit?
You only "RC" if you're talking about the CGI version of PHP. If you're
using the Apache module (mod_php), you will almost certainly need to
recompile Apache. If you use CGI, you should be able to get away with
using 32-bit Apache with 64-bit PHP.
If your maths is fairly simply (i.e. just some basic addition,
multiplication, etc, but with really big numbers), then you could try
using a PHP class or extension for large numbers in 32-bit PHP. These
basically store numbers in a string and do maths on that. They're a few
orders of magnitude slower than the maths functions built into the CPU,
but if your maths isn't complex, they'll might do the trick.
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 184.108.40.206-mm-desktop-9mdvsmp, up 8 days, 11:21.]
Best... News... Story... Ever!