Is there anyway to set a timeout for a file_exists or any other function?
<p>I am running a website where we are serving a large amount of files from a folder mounted over Fuse (cloudfuse - a Rackspace Cloudfiles container), it works wonderfully most of the time however every now and again the Fuse connection stalls and all my Apache processes hang waiting for a file_exists() function to return.</p>

<p>My question, is there anyway to set a timeout for a specific function or to use another function to check if the file exists but return with false if function takes longer than x seconds?</p>
