background top

10 things you (probably) didn’t know about php

This list in the link below may be from last year but it could very well save the average developer from a headache or two. The items on this list are definitely classified as time savers. If you’re a php developer I suggest checking out the story linked below.

Here’s #1 from the list:

      Use ip2long() and long2ip() to store IP addresses as integers instead of strings in a database. This will reduce the storage space by almost a factor of four (15 bytes for char(15) vs. 4 bytes for the integer), make it easier to calculate whether a certain address falls within a range, and speed-up searches and sorts (sometimes by quite a bit).

Check out the rest here: 10 things you (probably) didn’t know about php

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • description

Leave a Reply