Warning: fopen("http://www.inmh.ro/banner.php","r") - No error in php/vremea.php on line 10
Hello ppl.
I find this script here, on www.phpbuilder.com
<?
// Headlines Grabber by Neil Moomey, www.neilmoomey.com.
// You are free to use this code as you wish.
// Make sure you get permission from any web sites you grab code from.
// You may want to write the headlines to a file on your server to speed things up.
// Grab source code from a file or web site
if(!($myFile=fopen("http://www.site.com/banner.php","r")))
{
echo "The news interface is down for maintenance.";
exit;
}
while(!feof($myFile))
.......................................
this is a part of it, but the problem is that when the banner.php file can not be read I receive this error first :
Warning: fopen("http://www.site.com/banner.php","r") - No error in php/myscript.php on line 10
and after that the message :
The news interface is down for maintenance
what I want is to make something with that error, I don't wan't to recive that message, If the file has not been opened just stop and don't display anithing