开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜