displaying contents of another page on the current page
Posted: Tue Mar 06, 2007 11:54 pm
I need to display the contents of the url included below in the php code but it just displays an error
my server OS is: *nix
PHP Version: 4.4.1
Error:Warning: main(http://jamespinto.awardspace.com/news/r ... ds/nat.asp): failed to open stream: Connection refused in /home/www/jamespinto.awardspace.com/news/testnews.php on line 4
Warning: main(): Failed opening 'http://jamespinto.awardspace.com/news/r ... ds/nat.asp' for inclusion (include_path='.:/usr/local/php4/share/pear') in /home/www/jamespinto.awardspace.com/news/testnews.php on line 4
code:its here below
the page is at http://jamespinto.awardspace.com/news/testnews.php
Note: the url http://jamespinto.awardspace.com/news/r ... ds/nat.asp
works fine when put in the address bar but i cant include it in a page
my server OS is: *nix
PHP Version: 4.4.1
Error:Warning: main(http://jamespinto.awardspace.com/news/r ... ds/nat.asp): failed to open stream: Connection refused in /home/www/jamespinto.awardspace.com/news/testnews.php on line 4
Warning: main(): Failed opening 'http://jamespinto.awardspace.com/news/r ... ds/nat.asp' for inclusion (include_path='.:/usr/local/php4/share/pear') in /home/www/jamespinto.awardspace.com/news/testnews.php on line 4
code:its here below
Code: Select all
<html>
<head><title>NDTV top news</title></head><body>
<?php
include ('http://jamespinto.awardspace.com/news/rss2html.php?XMLFILE=http://www.ndtv.com/rssfeeds/nat.asp');
?>
</body>
</html>the page is at http://jamespinto.awardspace.com/news/testnews.php
Note: the url http://jamespinto.awardspace.com/news/r ... ds/nat.asp
works fine when put in the address bar but i cant include it in a page