I use fopen() to open a *.txt file on a server. Sometimes, this server is extremely slow and then I experienced, that my site is also that slow. Doesnt fopen() have a timeout? How can I set it? Or should I use something else to open a file, like readfile() ?
So basically I want to open a file on a server and if it takes to long, then it should stop trying.