![]() |
|
PHP redirect page - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141) +---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50) +---- Thread: PHP redirect page (/showthread.php?tid=4543454) |
PHP redirect page - Unturned - Nov 18, 2014 So i have a multiply if statements in php. And I tried add redirect page in one line. <?php header('Location: /index.php'); ?> And it returns errors such as: Warning: Cannot modify header information - headers already sent by (output started at www/gate.php:9) in www/gate.php on line 39 * - Squito - Nov 18, 2014 The header() must be before any output (echo and/or HTML). |