fopen and curl are used to include files from other sites/hosts. It would be inefficient and odd to have your own code on another host. Put it locally. 'include' doesnt need a timeout, it isn't subject to delays.