So the function fopen() works most of the time heres the line im using-
But for some reason that i haven't been able to discern yet im getting "Unable to open file!" on specific urls this wouldn't be so much of a problem but it ends up hanging the rest of the program up.
Anyway so far i cant see any reason for the errors to occur becuase when theres a error i manually type in the url into a browser it works fine even though im getting a connection error.
So if anyone can help understand why there is an error occuring or better yet a way to skip a function if a error occurs.
Oh yer even if i continually repeat the the function i still get a connection error over and over again so i doesn't seem to be just a single random error.
Any helps with this problem is greatly appreciated,
Thanks in advance,
Code:
$file = fopen($nextPage, "r") or exit("Unable to open file!");
Anyway so far i cant see any reason for the errors to occur becuase when theres a error i manually type in the url into a browser it works fine even though im getting a connection error.
So if anyone can help understand why there is an error occuring or better yet a way to skip a function if a error occurs.
Oh yer even if i continually repeat the the function i still get a connection error over and over again so i doesn't seem to be just a single random error.
Any helps with this problem is greatly appreciated,
Thanks in advance,
Comment