So,. I'm making a spider that opens a text of URL's and goes to each one and retreives the title so far, going to have it do more later..
The problem I'm having happens on some URL's I get this error:
Warning: file(http://www.ravinriley.com/Teen-Babe/galleries/Raven-Riley/1/14/849358 ): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/hsphere/local/home/myaccount/mydomain.info/censored.php on line 18
Warning: implode(): Bad arguments. in /var/hsphere/local/home/myaccount/mydomain.info/grab.php on line 19
anyways that is the 811'th URL its went to so i'm pretty sure its not my script .. happens on that URL each time.
My script keeps going working fine on most URL's and erroring on others.
I was wondering if anyone knows why that would happen on some URL's and not others ?
here is that part of the code that produces the error
<?php
$second = "http://www.ravenriley.com/Teen-Babe/galleries/Raven-Riley/1/14/849358";
$fhandle= file($second);
$content= implode('', $fhandle);
?>
Also does anyone know any way I can have it not show the errors, other than editing a php setting file since I'm on virtual hosting?
Thx 🙂