I just started collecting information about the phpQuery library, and where I don’t look, it’s written everywhere that “we’re creating a new HTML file with phpQuery”. And what, in already created PHP and HTML-files can not be embedded?

I will explain my task. I add the function "Edit the page title and meta descriptions" to my admin panel. Using jQuery it would be easy to do, but the file with the web page that I edit through the panel is not loaded in the browser; it just lies static in the folder. That is, you need to open the file, replace the meta descriptions and / or title ( <title> ) without downloading this file in the browser.

    1 answer 1

    Can. https://code.google.com/archive/p/phpquery/

    Use $ doc = phpQuery :: newDocumentFilePHP ('test.php'); Then do what you need using requests, and then just save the file.