Floating point precision in PHP
Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error
Read tutorialTHE TUTORIAL LIBRARY
Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error
Read tutorialHere are some tricks to convert from a "dotted" IP address to a LONG int, and backwards. This is very useful because accessing an IP addy in a database table is very much faster if
Read tutorialThis is a very simple but useful function to return number of digits of an integer.
Read tutorialHere 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.
Read tutorialFunction to sort array by elements and count of element (before php 5.3) (not use Lambda Functions, and Closures)
Read tutorialNote 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.
Read tutorialLike 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 (c
Read tutorialRecently many sites have been hacked by this malware. If your site is hacked as well, here's what you can do.
Read tutorialI could not get PHP pages to display in IIS 6 with Windows 2003, using the default install of the stable binaries from php.net.
Read tutorialIf you encounter the following error using PHP under IIS: "Warning: session_start(): open .... failed", you need to grant "read/write" permissions to the "IUSR" on the directory li
Read tutorialThere is a way to install PHP with nginx-server under windows (current version is 0.7.60)
Read tutorialOn the Windows 2003 & IIS6 platform, you can run different websites on different versions & copies of PHP. This is useful in at least two cases:
Read tutorialOne example today. A better developer tomorrow.