I need to run a site periodically using php. I used CURL but the problem is that it does not run javascript. How can i make the script access the site using php as if it were a user accessing the browser
<?php
shell_exec("curl -X POST -c cookie.txt -F 'login=bot' -F 'pass=bot@123456@' --cookie-jar 'cookie.txt' -L http://test.com");
?>
The topic marked as duplicate has NO RELATIONSHIP to what I want. I'm making a bot to access a page and run everything it has in it including javascript. But CURL does not execute javascript. I want an alternative