开发者

PHP Folders Location

开发者 https://www.devze.com 2023-02-22 15:53 出处:网络
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/\");

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

精彩评论

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