PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Nice function, gethostbyname(). Honestly, I didn't know it existed (see, you learn something everyday here). But make sure to read the user comments, specifically about caching, as this might affect the performance of your checking.
Everah wrote:Nice function, gethostbyname(). Honestly, I didn't know it existed (see, you learn something everyday here). But make sure to read the user comments, specifically about caching, as this might affect the performance of your checking.
not gethostbyname()! I was recomending gethostbynamel() which returns false on failure. Note the "L" at the end.