开发者

PHP Header, variable (external) link opening as if it were on my server

开发者 https://www.devze.com 2023-04-12 13:53 出处:网络
So, pretend I was opening www.example.com, using a $link variable and header(). Here\'s my code: header(开发者_Go百科\"Location: \".$link);

So, pretend I was opening www.example.com, using a $link variable and header(). Here's my code:

header(开发者_Go百科"Location: ".$link);

Here's the result: http://reecemcmillin.com/test/www.example.com

How can I just get it to open www.example.com, instead of having it pretend it was a file on my server?


Ensure $link includes 'http://':

$link = 'http://www.example.com';
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号