Copying file... failed to open stream
Posted: Mon Jul 21, 2003 6:39 am
G'day everyone!
My current project involves grabbing news headlines from a local news website and slotting them into the client's website. There's no copyright issues involved - all that has been cleared up (thank goodness
)
Here's the problem:
When this code executes it generates the following errors:
When I replace the nasty looking $GrabURL with a local copy of the same file everything works no worries. The fopen_wrappers are turned on. I get the same errors running on two different servers!
Any help is v.v.appreciated!
Cheers,
Clinton Greer
cggreer@it.uts.edu.au
My current project involves grabbing news headlines from a local news website and slotting them into the client's website. There's no copyright issues involved - all that has been cleared up (thank goodness
Here's the problem:
Code: Select all
<?php
$GrabURL = urlencode("http://www.news.com.au/common/storylib/0,4810,BreakingNews%255EBREAKING%2520NEWS%255ETEXT%255Enews,00.html");
// 1. Grab the HTML
$RetrieveFile = implode ('', file ($GrabURL));
?>Code: Select all
Warning: file(http%3A%2F%2Fwww.news.com.au%2Fcommon%2Fstorylib%2F0%2C4810%2CBreakingNews%25255EBREAKING%252520NEWS%25255ETEXT%25255Enews%2C00.html): failed to open stream: No such file or directory in D:\Program Files\Apache Group\Apache2\htdocs\MyHSCAdmin\TMPsb0s1idfog.php on line 94
Warning: implode(): Bad arguments. in D:\Program Files\Apache Group\Apache2\htdocs\MyHSCAdmin\TMPsb0s1idfog.php on line 94Any help is v.v.appreciated!
Cheers,
Clinton Greer
cggreer@it.uts.edu.au