I have a situation here. I need to edit only meta tags and the contents of a <div id="container"></div>
in a remote html page, using php.
The process is, when the user edits the remote html page from edit.php, which loads the remote page's div#container
(editing is done by html5's content editable attribute) and clicks save button, the edit page sends the html to the server page, say update_html.php
.
Here in update_html.php
how can I open pages/remote_page.html
and write/update only the contents in the div#container
and the meta tags?