- Include a Page from another Website
In this tutorial discover how to Include a Page from another website without getting the nasty Warning – URL file access is disabled in the server configuration
This is the big problem to do because you usually get this warning – URL file access is disabled in the server configuration. What it means is you can”t use a server side file [such as asp, php] from another server inside a server side file. So using the PHP include like this <?php include (”http://someothersite.com/index.php”); ?> will fail and give you the dreaded Warning – URL file access is disabled in the server . However, it works perfectly for a file stored on the same server!
- cURL is the Cure!
Instead of the usual PHP Include, use this code instead to Include a Page from another website:<?php$curl = curl_init();curl_setopt($curl, CURLOPT_URL, "http://someothersite.com/index.php");curl_exec($curl);curl_close($curl);?>
- Preserve your SEO
The beauty of this method is that your page will still be crawled by the search engines as usual, whereas solving this problem with frames leaves a lot of doubt as to whether the content is crawled and cached!
- Fast updating
A side effect of using this method is that you can keep one file of, say, current events, on your server, and include it in many other websites. Then all you need to do is update one file and every other site will display the updated information automatically – ”aint that sweet?”, How to Include a Page from another Website

