开发者

PHP Folders Location

hi im in a folder /lo开发者_如何学JAVAgin/ & I want to use header to goto /apps/news/ so how do I type the location ?


header("Location: http://yourdomain/apps/news/");

Edit: Removing relative URL example after Pekka's comment, which is correct. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 for the details.


header("Location: http://your-url/apps/news/")
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜