Addressed to: "Jason Jacobs" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Jason Jacobs" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 11:28:37
-0500
>
> Hi. In some of my files, I have a require statement to get some global
> stuff accessable. I also have some header() redirects. They don't work
> (they worked before I added the requires). I moved the require under one of
> the header()s and that one works now, but I can't move it under the other
> one because stuff has to happen before the redirect and it needs the
> required stuff. So my question is do require statements produce output that
> I can't see (which would make the redirects not work)? The files I'm
> requiring don't have any output, which is why I'm confused. Thanks.
The most common cause of this problem is a blank line, or evan a space
in the wrong place in one of the required files. The following examples
will cause the problem:
--------------------------------------
<?
some code here
?>
--------------------------------------
--------------------------------------
<?
some code here
?>
--------------------------------------
--------------------------------------
<?
some code here
?>
--------------------------------------
--------------------------------------
<?
some code here
?> NOTE: even a single space after the > will cause a problem.
--------------------------------------
--------------------------------------
<?
some code
?>
<?
some more code
?>
--------------------------------------
What they all have in common, is ANYTHING outside of <? and ?> in the
file.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]