php - Displaying other webpage using cURL request -
i want display other webpages on website using curl. not working iframes because not work in lot of cases.
i can make pages display using curl using following code.
$result=query("select url links l_id='$linkid'"); $url =$result[0]["url"]; $ch = curl_init(); // set single option... // ... or array of options curl_setopt_array( $ch, array( curlopt_url => $url, curlopt_returntransfer => true )); // execute $output = curl_exec($ch);
but in of url's sometime css file or other images not load.
i 403 forbidden error. can make these errors go away in of cases.
i opening host of url's. again don't want open in iframe. or there method use.
they have used related path css , images. add domain url image url.
example, <img src="http://backlinko.com/img1.jpg"/> this. <img src="<?php echo $url;?>/img1.jpg">
Comments
Post a Comment