i know i cannot call header() if i already sent something before, thanks to some nice explanations here on SO.
i am currently a bit confused on what is considered output:
<?php
//include my file for mysql authentication
include_once "/home/mywebsite/etc/login.php";
header('Location: http://www.mywebsite.com/error.php');
exit();
?>
now, my login.php contains:
<?php
$db_host = "localhost";
$db_name = "dbname";
$username = "user";
$password = "password";
?>
there are no whitespace at the end of my login.php i've backspaced everything :D
so, my question is:
is the function include_once it self generating some kind of output or am i missing something?
thank you for any advice you might have for my noobskills
regards.