从lublessmonkey/tampermonkey运行一个PHP脚本(或类似的东西) [英] run a php script( or anything similar) from greasemonkey/tampermonkey

查看:78
本文介绍了从lublessmonkey/tampermonkey运行一个PHP脚本(或类似的东西)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种制作php脚本的方法,该脚本将在我不拥有的特定页面加载时启动.
页面加载后我要启动的是具有登录屏幕的模式.

I need a way to make a php script that will launch on a certain page load that I do not own.
What I want to launch when the page is loaded is a modal that has a login screen.

为此,我将需要 tampermonkey / greasemonkey 来运行php脚本(或接近它的东西),该脚本将从sql server中检索信息.

For this to be possible I will need for tampermonkey/greasemonkey to run a php script(or something close to it) that will retrieve information from a sql server.

编辑:

我将托管自己的sql服务器,并且用户将登录/注册到该服务器.然后,他们将使用此登录名保存其信息.



I would host my own sql server and users would login/register on to it. They would then use this login to hold their information.

推荐答案

我不是真的100%知道您在这里要什么,但是不可能在外部网站上运行PHP脚本,因为PHP是服务器-辅助语言.

I'm not really 100% sure what you're asking for here, but it's impossible to run PHP scripts on external websites, as PHP is a server-side language.

如果没有该数据库的登录信息以及访问权限,您也无法从其他网站的MySQL数据库检索信息(数据库通常具有白名单,如果不在该数据库中,则无法访问该白名单甚至包含信息).

You also can't retrieve information from another website's MySQL Database without the login information to said Database, as well as access permissions (Databases often have a whitelist, and if you're not on it, you can't access it even with the information).

如果有其他需要,我需要更多有关您想要的信息.抱歉!

I'd need a little more info on what you want though, if it's something else. Sorry!

这篇关于从lublessmonkey/tampermonkey运行一个PHP脚本(或类似的东西)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆