How to export a specific table from an html to another html via php?

3

I have an HTML file with multiple tables throughout the code. The function of this file is to export these same files to other HTML files (one file per each table). So this file works as a kind of information bank where I later want, I just have to change the first file and do not go looking for such a specific file to edit the table

Is there any way to do this in php? I've tried the include and require sends the whole html, not only the <table></table> , that I want.

    
asked by anonymous 26.06.2016 / 22:48

1 answer

1

Do you have this information stored in the database? Would not it be easier to save them in the bank and build the HTML later? If this is not possible, save this HTML document to a folder and then request it using Curl, I believe you can then add the content to the rest of the page.

    
27.06.2016 / 00:06