Home > Chỉ dẫn lập trình > Notice when using header redirect

Notice when using header redirect

Why did I say that?

Test following script
header(‘Location: http://about:blank’);

file_put_contents(‘/tmp/still-running’, ‘I am here’);

Then
cat /tmp/still-running

So, don’t forget die!!!

  1. Chưa có bình luận nào.
Content (You can use Yahoo! Messenger Emoticons :D = smile)
Captcha