PixelsCommander / OnlineJS

Reliable, fast and easy to use library to check your internet connection status
http://pixelscommander.com/polygon/onlinejs/
68 stars 17 forks source link

Request php code #1

Closed akumagio closed 11 years ago

akumagio commented 11 years ago

Hi First, thanks to your code I can make an application offline. but I like to have or know what the code of online.php to put it on my server and have more control over the connection status.

thanks

PixelsCommander commented 11 years ago

Hello

Thank you for attention to this thing.

Online.php is just one line php script wich allows cross-domains requests.

<?php header("Access-Control-Allow-Origin: *");

I`ll add this file to repository a bit later. At the moment you can just copy this code to php file and save it on server.

PixelsCommander commented 11 years ago

online.php was added to repo

PixelsCommander commented 11 years ago

also you can use static file with same headers set, will be a bit faster