You are here: Re: problem to open a distant XML file in PHP « PHP Programming Language « IT news, forums, messages
Re: problem to open a distant XML file in PHP

Posted by VS on 02/16/07 18:36

sumguyovrthar wrote:

> You can't use fopen() on remote files. Try this instead:
> $file = implode( '', file( $$fichier_xml ) );

Rubbish !

(PHP 4, PHP 5)
fopen — Opens file or URL

This works for me:

$URL = "http://wwe.......";

if (!($remotefile = @ fopen("$URL", "r"))) {
//echo "Error: url could not be opened<br />\n";
die();
}

--
VS

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация