如何自动单击指定的链接

i want a php code for automatically clicking on a Specified text or link on a page.

thanks

You want to use JavaScript code.

Just insert a script tag just before the closing body tag on the web page. It should look something like this:

<script>
    document.getElementById("#my-link").click();
</script>

That will click the link with the HTML ID "my-link".

Note that generally this is not a good idea to implement. If you need to forward the user to another page, you can do that without simulating a mouse click - in PHP you can use the code

header("Location: redirectToHere.php");

and that will redirect the user automatically. If you need to change things on the page, you can do that by directly setting their properties with JavaScript.