I'm modifying an existing site (on another host) to use dynamic content for their news page. The database resides on my server along with the CMS GUI. I simply need their news page to retrieve data from my database. Here is the initialization code I placed on their page:
<?php
ob_start();
session_start();
require_once ('http://www.externalsite.com/include/mysql_connect.php');
?>
Here is the error I received:
Fatal error: require_once() [function.require]: Failed opening required 'http://www.externalsite.com/include/mysql_connect.php' (include_path='.:/usr/services/vux/lib/php') in /data/20/1/112/25/1438351/user/1545305/htdocs/site/mysql_connect.php on line 10
Other threads had mentioned using "fopen" to capture the code? Is that the correct method? Can anyone provide insight on how I could apply it to the code above?