Jump to content

function.copy]: failed to open stream


CoreyR

Recommended Posts

Hi all! I have a script that grabs a file, reads it and then creates the file on my server. It works on one server but errors on the other.

 

<?php
$sf = "http://developer.newcondosonline.com/rss-properties-san-francisco.xml";
$sfxml = "sf.xml";
$source = $sf;
$dest = $sfxml;
if (!copy($source, $dest)) 	{print ("failed to copy $dest. It is possible the XML feed has been changed, please check with provider.<br>\n");}
?>

 

Any ideas?

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/55859-functioncopy-failed-to-open-stream/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.