DR.Wong
03-22-2009, 04:13 PM
Hey everyone,
Well here I sit typing on a LAMP server that I use for a little bit of dev.
Some of my apps need the internet to communicate with other apps that I have written online.
The problem is that my internet comes and goes as it pleases.
Is there a way to quickly check if there is an internet connection, perhaps with a function that returns true or false?
I was looking at pinging with PHP but that looks WAAAAAY to complex for my uses.
Thanks a lot!
Well here I sit typing on a LAMP server that I use for a little bit of dev.
Some of my apps need the internet to communicate with other apps that I have written online.
The problem is that my internet comes and goes as it pleases.
Is there a way to quickly check if there is an internet connection, perhaps with a function that returns true or false?
I was looking at pinging with PHP but that looks WAAAAAY to complex for my uses.
Thanks a lot!