How can I check to see if a url is good before I use the file_get_contents () function so that I don't get an error. Thanks.
turn it into an if statement is one of the ways to do that.
if(file_get_contents($file)) { //code for if it works } else { //error code }
Thank you very much!