I'm trying to code a 'file exist' subroutine for URL-based calls but can't get past the issue with fopen generating error messages to the browser when the call fails.
Is there a function (or switch for fopen) that I can use that will return just FALSE (no warnings) if the file (or in my case a call to a URL) fails?
Granted, file_get_contents works great for files that exist but short of modifying the php.ini to turn warnings off (which I really don't want to do), I can't find anything that will work.
Any ideas?