How can i add exception?

bobo

New Member
I have a php site www.test.com.In the index page of this site ,i am updating another site's(www.pgh.com) database by the following php code.\[code\]$url = "https://pgh.com/test.php?userID=".$userName. "&password=" .$password ;$response = file_get_contents($url); \[/code\]But,now the site \[code\]www.pgh.com\[/code\] is down.So it also affecting my site 'www.test.com'.So how can i add some exception or something else to this code,so that my site should work if other site is down
 
Back
Top