简体   繁体   English

PHP客户端操作以在服务器端运行脚本

[英]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. 基本上,我试图根据客户端用户的操作使服务器运行PHP脚本服务器端(使用服务器端访问令牌)。

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) (Windows服务器)

Use AJAX , for example with jQuery this way: 例如,将AJAX与jQuery一起使用:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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