r********t 发帖数: 395 | 1 header("Location: http://www.google.com/");
exit;
when the php code goes into this line, the page did nothing. How can I make
the page exit and go into www.google.com? I thought it simple php page
redirection, but it always fails:(
thank you for your help |
w*****g 发帖数: 1415 | 2 可能Header之前还有输出。
把它放到文件的第一行试试。 |
z****d 发帖数: 89 | 3 header前有输出不行
exit();?
可以再加个保险下 |
r********t 发帖数: 395 | 4 no exit()
I used session, btw. Is there any problem regarding this?
【在 z****d 的大作中提到】 : header前有输出不行 : exit();? : 可以再加个保险下
|
r********t 发帖数: 395 | 5
I put it in the first line, still failed...
【在 w*****g 的大作中提到】 : 可能Header之前还有输出。 : 把它放到文件的第一行试试。
|
s****y 发帖数: 983 | 6 don't tell me you didn't input |
x********1 发帖数: 183 | 7 you can try this code:
filename 'google.php'
echo "google"
?>
If you want to automatically redirection. let me know! |
r********t 发帖数: 395 | |