Parsing HTML files from an external web server

From: Date: Wed, 25 Apr 2001 11:16:58 +0000
Subject: Parsing HTML files from an external web server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50275@lists.php.net to get a copy of this message
Hello List. I'm having a little trouble with parsing HTML files and inputting the data from the HTML file into a MySQL database. I get the following error when trying toparse the file. Warning: file("http://www.server.com/file.htm") - No error in d:\webpages\world\lists.php on line 8 The following is part of my php code <? $url = "http://www.server.com/file.htm"; $fileArray = file($url); $state = 0; $line = 0; $ProvinceCount = 0; $Details = Array(); **************** I then have more code which parses the file and parses the data and puts it in an array. I was wondering whether anybody could provide information as to what the possible problem could be. If you want more information, please contact me off-list. Thanks, James

« previous php.general (#50275) next »