I have been looking around to see if it's possible to use the built in ajax object in jquery, to call a function in a php file. I haven't found anything definate.
I would just like to call this function. what is the best way to achieve this. I would like to add more functions to this php file in the future.
thanks
jasemilly
- <?php
function InternetAccessTest()
{
$host = 'www.karoo.co.uk';
$up = ping($host);
return ($up ? '<div class="ribbon green">OK</div>':'<div class="ribbon red">OK</div>');
}