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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi
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: