Answer the question
In order to leave comments, you need to log in
How to view the code of a site that has one connection to a JS file?
Is it possible to view code in PHP from another site that has one connection to JS? For example:
<html>
<body>
<script src="script.js"></script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
I can offer you an interesting crutch through chrome / chromium, install
chromium and call it through shell_exec with the parameters headless / disable-gpu / dump-dom (the last flag is key for your task).
more or less like this:
$dom = shell_exec('chromium-browser --headless --disable-gpu --dump-dom https://example.ru/');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question