Re: [PHP] Best ajax library

2009-12-19 Thread Ali Asghar Toraby Parizy
I have chosen jquery at last. because: • jQuery has a huge number of plugins available for everything you could imagine wanting to do online • The information on the jQuery site is extremely well documented, with many examples • jQuery does not extend the elements that it works on, which means

[PHP] Checking for internet connection.

2009-12-19 Thread Angus Mann
Hi all. I'w writing a PHP app that is designed to run over a LAN, so internet connection for the server is not really essential. Some users may deliberately not connect it to the internet as a security precaution. But I'd like the app to make use of an internet connection if it exists to

Re: [PHP] Checking for internet connection.

2009-12-19 Thread Ashley Sheridan
On Sun, 2009-12-20 at 10:13 +1000, Angus Mann wrote: Hi all. I'w writing a PHP app that is designed to run over a LAN, so internet connection for the server is not really essential. Some users may deliberately not connect it to the internet as a security precaution. But I'd like the

Re: [PHP] Checking for internet connection.

2009-12-19 Thread Angus Mann
Why can't you put the update on the same LAN server that the app resides? If that is not possible, what about using CURL, and update if it can connect successfully, but don't if it cannot? Thanks, Ash http://www.ashleysheridan.co.uk Since the LAN is remote (many

Re: [PHP] Checking for internet connection.

2009-12-19 Thread Ashley Sheridan
On Sun, 2009-12-20 at 10:36 +1000, Angus Mann wrote: Why can't you put the update on the same LAN server that the app resides? If that is not possible, what about using CURL, and update if it can connect successfully, but don't if it cannot? Thanks, Ash

Re: [PHP] Checking for internet connection.

2009-12-19 Thread John Corry
Curl_init() will return a resource or false if it fails, like it would if no Internet connection were present. J Corry Sent from my iPhone On Dec 19, 2009, at 5:36 PM, Angus Mann angusm...@pobox.com wrote: Why can't you put the update on the same LAN server that the app resides? If

Re: [PHP] Checking for internet connection.

2009-12-19 Thread Phpster
The next way to handle this might be to code an AIR app. Then it's a simple js trap to see if connectivity exists. Bastien Sent from my iPod On Dec 19, 2009, at 7:13 PM, Angus Mann angusm...@pobox.com wrote: Hi all. I'w writing a PHP app that is designed to run over a LAN, so internet