If you are having a problem that tells you that output was displayed on a
given line in a given file.  And you found this because after the output you
tried sending headers, then look in that file on that given line, and you
will see the problem.

It could be a simple as a

?>

<?

type break in your code.

If that doesn't work, start by removing all the code in that file and adding
it back peice by peice up until you have your error message.  Then you will
know what is causing the problem.

Jim Lucas

----- Original Message ----- 
From: "Mjec" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 25, 2003 12:56 AM
Subject: [PHP] include () problems


> Hi,
>
> When I run the line:
>
> include ("fnord.php");
>
> with the file looking like:
>
> <?php
>     define ("fnord_included", true);
>     function fnord ($arg = true) {
>
>         // 450 lines
>         return $msg;
>
>     }
> ?>
>
> it prints out the return of fnord() (i.e. $msg).  I've checked, and
there's
> no echo or print statemetns anywhere...
>
> Oh, yeah, FYI, the pattern goes like this:
>
> file: index.php
> <?php include ("standard.php"); /* rest of page */ ?>
> file: standard.php
> <?php /* a few defines */ include("fnord.php"); /* rest of stuff */ header
> ("Content-type: text/html; encoding=utf-8"); ?>
>
> and it prints it right up the top of index.php, causing an error with the
> "header" statement (although it says the error is in fnord.php - which
> contains NO header statemtns).
>
> ideas?
>
> Regards,
>
> mjec
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to