note 14279 deleted from function.xmldocfile by nlopess
| From: | nlopess@php.net | Date: | Mon, 28 Jun 2004 15:07:48 +0000 |
| Subject: | note 14279 deleted from function.xmldocfile by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72039@lists.php.net to get a copy of this message | ||
Note Submitter: kschacht@leverworks.com
----
If you have a remote file you want to load up instead of a local file use this:
$doc = xmldoc(url_to_str("http://domainsrc.com/datasrc.php"));
function url_to_str($url) {
$fp = fopen($url, "r");
$str = "";
while(!feof($fp))
$str .= fgets($fp, 1000);
return $str;
}