Jump to content

[SOLVED] Do I need to exit after header('location')?


LooieENG

Recommended Posts

The reason is because the header will fail if their any ouput before it,

 

think of it this way,

 

if you get an error (thats output) thus the header rediect will fail.. so the exit will stop the code, without the exit, the code would continue.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.