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/")
精彩评论