简体   繁体   English

引用脚本的特定部分

[英]Referencing a certain section of a script

I am sending out a request to a site, which needs a returning URL. 我正在向站点发送请求,该站点需要返回URL。 Once that returning URL is put in, I'd like to run this particular section of my code. 一旦返回了返回的URL,我想运行我的代码的这个特定部分。

How do I do this? 我该怎么做呢?

I have tried the return URL as : 我尝试将返回URL设置为:

file.php?auth=true

and

if($_GET['auth'] == 'true') {
 Do Something
}

But the previous page appears to load. 但是上一页似乎已加载。

Is there any other way to do it? 还有其他方法吗?

You've got syntax error on the first line 第一行出现语法错误

It should be 它应该是

if($_GET['auth'] == 'true') {

but yes, this is correct way to do it 但是是的,这是正确的方法

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

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