php - difference between alternative syntax of header() with exit - Stack Overflow

Опубликовано: 11 Май 2026
на канале: ResponseXAI
No
0

According to the actual RFC for HTTP, you should use an uppercase "L", and an absolute URI:
header('Location: http://www.mysite.com/index.php');

As far as exit vs exit(), there is no difference. It is a language co

#should #absolute #according #urı: #exit()

https://stackoverflow.com/questions/1... https://stackoverflow.com/questions/1...