In this code, a careless programmer will think that header('location:http://bbs.it-home.org '); is over. In fact, the background code is still executed, so when using header(location), whether it is encapsulated in another function or written directly, it is recommended to add exit() at the end to confirm the program. Abort. >>>> Articles you may be interested in: Simple example of php header() function Example code for file download using php header function Detailed explanation of usage examples of header function in php Detailed explanation of php header usage php header function directly prompts for the saved code when downloading the file php header information application example Detailed explanation of php file header information Detailed explanation on the use of PHP header() function Detailed explanation of HEADER header message in PHP >>>> |