PHP Tutorials

41. Function to return number of digits of an integer in PHP

By: Iletras : 2011-04-08

Description: This is a very simple but useful function to return number of digits of an integer.


42. Function to force strict boolean values in PHP

By: Fyrye : 2011-04-08

Description: Here is a function that you can use if you have a need to force strict boolean values.Hopefully this will save someone some time from searching for similar.


43. Function to sort array by elements and count of element in PHP

By: oscar : 2011-04-06

Description: Function to sort array by elements and count of element (before php 5.3) (not use Lambda Functions, and Closures)


44. Function to convert strings to strict booleans in PHP

By: oscar : 2011-04-06

Description: Note this one only checks for string and defaults to the PHP (boolean) cast where e.g. -1 returns true, but you easily add some elseifs for other datatypes.


45. The Object (compound) Type in PHP

By: Jeffrey : 2011-04-06

Description: Like every programming language, PHP offers the usual basic primitive types which can hold only one piece of data at a time (scalar). I am particularly fond of the "object" type (compound) because that allows me to group many basic PHP types together, and I can name it anything I want.


46. Malware: global $ob_starting;

By: Emiley J : 2011-04-04

Description: Recently many sites have been hacked by this malware. If your site is hacked as well, here's what you can do.


47. Installing PHP with Apache 2.x on HP UX 11i and configuring PHP with Oracle 9i

By: Vinayak : 2011-03-26

Description: After lot of hard work, by following the above procedure, we were able to make PHP 5.x is work with Apache 2.x and Oracle 9i on HP UX 11i OS.


48. Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:......

By: Louis : 2011-03-26

Description: Change the /usr/local/mysql/ prefix to where ever your MySQL installation is. Make sure to add on the /lib/mysql extension to your own path though.


49. Setting up PHP in Windows 2003 Server IIS7, and WinXP 64

By: Fernando : 2011-03-26

Description: Set IIS to allow 32-bits if you are on 64-bits


50. error: "Service Unavailable" after installing PHP to a Windows XP x64 Pro

By: Eduardo Biga : 2011-03-26

Description: If you get this error: "Service Unavailable" after installing PHP to a Windows XP x64 Pro, you may want to try checking the ISAPI Filters in your IIS.