![]() ![]() Indeed, the same that works in an HTML document with the correct headers, does not work in a PHP file with no headers. I was falsely led to believe by own implementation that it would not make a difference. ![]() What I usually do - unformat my HTTP requests before sending - I did not do in this case. Removing the line breaks does perform a proper download and insert. And, what I am trying to do simply does not work. What is the necessary header argument required? I have tried both " ![]() QUESTION: If an image can be created by a PHP file and then read into the src attribute of an image tag, surely it must then also be possible to read the HTML content of a PHP file into the src attribute of an iFrame. ![]() Obviously, there is no difference in the URLs. (The absence of the authorization token assumes that the superuser has given access to all users the right to view whatever they like. Below is sample code taken directly from the Matomo website. OBJECTIVE: Read the data into a PHP file, and load the result into the src attribute of an iframe. As I, myself, do not yet know what to do with everything that Matomo makes available (it appears endless), I certainly do not want to put it all into the hands of others willy-nilly. For, to do so would require that I expose the authorization token that enables knowledgeable visitors of Matomo - and coding in general - the ability to view everything about my website that I am able to view. BACKGROUND: I would like to embed a Matomo widget into a page, but I dare not embed it directly. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |