Yet, when I try to access it through the php script at:http://www.miafoto.it/iPhone/inarrivo/phpMi/getLines.php in order to parse its content, I receive error:
Warning: file_get_contents(http://gmmobile.atm-mi.it/wsbw/InfoTraffico/) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /iPhone/simplehtmldom_1_5/simple_html_dom.php on line 70
The contents of the php is the following:
- Code: Select all
include('simple_html_dom.php');
// Create DOM from URL or file
$url='http://gmmobile.atm-mi.it/wsbw/InfoTraffico/';
echo $url;
$html = file_get_html($url);
echo $html;
$i=0;
foreach($html->find('option') as $content)
{
$linea=$content->value;
$destination=$content->title;
$i++;
}
What might be the business and I could I fix the problem?
Thanks, Fabrizio Bartolomucci


