Beginning PHPBeginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I would like to know if there is a tutorial on creating a PHP script to read and extract data from a html file (data set out in database table format) to convert it to csv or even sql for MySQL database.
Depends on the structure of the HTML file. In which case, if I could answer that the HTML file was well-formed and could pass for XML I'd look at tutorials for reading and parsing XML, which many methods exist. There is also the DOM extension to PHP, and it might be just as easy to parse the data using that extension. Start with the PHP manual: