简体   繁体   中英

PHP Client-Side action to run a script server-side

I am sure this is possible and I have done this before but my mind has gone completely blank.

Basically I am trying to get the server to run a PHP script server side (using server side access tokens), based on an action from a client side user.

What's the best way to do this? Don't really need a detailed answer, just a push in the right direction!

Thanks.

(Windows Server)

Use AJAX , for example with jQuery this way:

<script>
    $.ajax('something.php');
</script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM