|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-26 21:28 UTC] tony2001@php.net
[2006-09-26 23:22 UTC] dgbauleo at yahoo dot com dot br
[2006-09-27 07:30 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 12:00:01 2025 UTC |
Description: ------------ I'm trying to pass an external link to the file() function, but it returns a weird error message in portuguese. Assuming that I live in Brazil, the message in portuguese is not the problem. What I don't understand is that the code was working, then suddenly it started to raise the error message. Reproduce code: --------------- <?php $aOrigem = file('http://rss.terra.com.br/0,,EI4795,00.xml'); ?> Expected result: ---------------- The lines of the file 0,,EI4795,00.xml should be passed as an array to $aOrigem. Actual result: -------------- I received this error message: Warning: file(http://rss.terra.com.br/0,,EI4795,00.xml) [function.file]: failed to open stream: Falha de uma chamada ao sistema que n?o deveria falhar nunca. in D:\WebRoot\atualiza_xml.php on line 2 Translating the error message to english: "Fail in a system call which should never have failed." I don't believe this is a coding issue, since the file is only 1 line long, and this code was working about 2 hours ago.