[PHP] Parsing HTML files from an external web server
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 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Parsing HTML files from an external web server
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 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Reading from a webpage
Hello List, I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information that we see or whether it is the underlying source code. I understand that depending on what it is will mean changes to the way I retrieve the information. If you need additional information, please contact me and let me know. Thank-you. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]