Archive for the ‘PHP’ Category.

Apache + PHP compilation error

Bump into some issues when compiling Apache 2.2.15 and PHP 5.2.14

Problem:

 
Make complete
Installing php-5.2.14...
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
libtool: install: `libphp5.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536

Solutions:

cp /root/php-5.2.14/libphp5.la /usr/local/apache2/modules/

Not sure what happen but it fixed my problems 😉

Hope this helps …

Block Country using PHP

I hope this is helpful to those who owns dedicated server or VPS and wish to block their visitor coming from any country. Well, this applies to some of my project that I wish to restrict users coming from 1 or more country and previously I uses MaxMind GeoIP (PHP version) and hard code it to my scripts that read from the flat file database to determine the user’s country.

Well, over time, I find that this solution is not good as more sites of mine growing and different country required to be blocked, thus adding difficulties in future if I need to update the flat file database.
Continue reading ‘Block Country using PHP’ »

Those looking for PHP 5 in Singapore

Finally after a long period of testing on my cPanel server in Singtel, I can finally roll out PHP 5 on my server including PHP 4 support. This move will enable that I can keep up with the development I am doing as PHP 4 will be discontinued at 2007-12-31

So if anyone of you need PHP 5 hosting, do feel free to drop me a email at [email protected] I will give you a good discount 🙂

Goodbye PHP 4!

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.

For documentation on migration for PHP 4 to PHP 5, we would like to point you to our migration guide. There is additional information available in the PHP 5.0 to PHP 5.1 and PHP 5.1 to PHP 5.2 migration guides as well.

My 2 cents

I will be very busy this few days checking all the applications that I have coded to make sure that all of them work on PHP 5. Not only that, I will be recompiling some of the custom apache installations I have. Well, this month will be very busy for me since this major changes has finally come.