Try this statement and check if it works on your machine!
Posted: Fri Oct 19, 2007 2:13 pm
Hi, all.
Try following PHP code
[/b]
It should return 2022886285
- On my current Web hosting: It works OK.
IXWebhosting.com
Dell PowerEdge 2650
DUAL Intel Xeon 2.8GHz, 512K Cache
RedHat - 7.3 OS on your server
- On my new Dedicated Web hositn: It return just 0. Problem!
HostGator.com
Pentium 4 2.4Ghz
CentOS Enterprise.
Why One simple Bitwise statement doesn't work on CentOS?
New Hosting company support from HostGator tells me
It's code problem or php problem.
However it works on others.
Please test the statement in your site and Reply the result if it returns proper value or not.
It helps me alot and helps others facing this problem.
Try following PHP code
Code: Select all
<?php echo 2022886285 & -2147483649; ?>It should return 2022886285
- On my current Web hosting: It works OK.
IXWebhosting.com
Dell PowerEdge 2650
DUAL Intel Xeon 2.8GHz, 512K Cache
RedHat - 7.3 OS on your server
- On my new Dedicated Web hositn: It return just 0. Problem!
HostGator.com
Pentium 4 2.4Ghz
CentOS Enterprise.
Why One simple Bitwise statement doesn't work on CentOS?
New Hosting company support from HostGator tells me
It's code problem or php problem.
However it works on others.
Please test the statement in your site and Reply the result if it returns proper value or not.
It helps me alot and helps others facing this problem.