Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
1  
Are you receiving an error? –  Doug Owings Oct 31 '11 at 9:37
    
Thank you for your comments. I've figured out that there is a authentication process htaccess to read /etc/ folder in the middle -_- i am sorry :| thank you again –  NoobTom Oct 31 '11 at 9:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.