PHP -- warnings for file()

software development

#1

I’m writing a prog that opens an XML file and parses the tags for data. It was actually pre-written and I’m going to modify it. I’m getting three warnings and I’m not getting the data. The warnings are:

Warning: file(): URL file-access is disabled in the server configuration in /home/.cattaira/***/***/***/index.php on line 6

Warning: file(http://xoap.weather.com/weather/local/21211?cc=∏=xoap&par=1003188692&key=7392ac66b4e27671): failed to open stream: no suitable wrapper could be found in /home/.cattaira/**/***/***/index.php on line 6

Warning: join(): Bad arguments. in /home/.cattaira/***/***/***/index.php on line 6

If you want to check out the program, it’s at http://www.zend.com/codex.php?id=1257&single=1
At this point, I haven’t made any changes, I just want this code to run.

Thanks for any help


#2

[quote]I’m writing a prog that opens an XML file and parses the tags for data. It was actually pre-written and I’m going to modify it. I’m getting three warnings and I’m not getting the data. The warnings are:

Warning: file(): URL file-access is disabled in the server configuration in /home/.cattaira/***/***/***/index.php on line 6[/quote]
Try searching the forum. You will find countless responses for this problem, all of which will eventually lead you to this wiki page.


Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]