Opening the link in iframe does not work

I have a web page that loads inside an iframe. I've added the basic tag to load the images, stylize and make the links work, after clicking on a link, the error "whatsmyip.com refused to connect". The addition of target = "name-of-iframe" to all links does not work.

HTML
SEMrush










PHP

$ page = get_page ($ _GET[‘url’])

$ page = str_replace ("","", $ page);

echo str_replace ("<a", "<a target = " frame "http://forums.digitalpoint.com/", $ page);

get_page function ($ url) {
$ ch = curl_init ();
curl_setopt ($ ch, CURLOPT_URL, $ url);

$ proxy = 14 .207.72.213: 8080 & # 39 ;;
curl_setopt ($ ch, CURLOPT_PROXY, $ proxy);

curl_setopt ($ ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ ch, CURLOPT_HEADER, 0);
$ data = curl_exec ($ ch);
curl_close ($ ch); return $ data;}