Jump to content

PHP Redirecting


Mohanddo

Recommended Posts

There is no point in outputting anything if all you are going to do is redirect your client. I suggest organising your code properly so you can use header.

 

Second that. If you do want a quick solution (this ain't a good one!) try using ob_start() at the beginning of your code and ob_flush() after the header function call. ob stands for output buffer, basically it will halt all output until you flush the buffer.

Link to comment
https://forums.phpfreaks.com/topic/182627-php-redirecting/#findComment-963943
Share on other sites

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.