|
play around with fopen(). try to open the file, and if you can't, then write a javascript variable to the page to let it know that it should not make your ajax requests.
you might need an '@' sign before fopen to supress any errors it might generate if it can not open the file.
i don't think file_exists() works across the internet. that would be ideal though.
|