RE: [PHP] headers already sent and cookie problem
| From: | frederik feys | Date: | Thu, 17 Jul 2003 14:47:32 +0000 |
| Subject: | RE: [PHP] headers already sent and cookie problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155625@lists.php.net to get a copy of this message | ||
Hi all, hi Mike,
Here's the URL:
http://www.aurelis.org/store/cart.txt
and the get_cartID:
http://www.aurelis.org/store/includes/functions/get_cartID.txt
Thanks in advance!
Fred
-----Original Message-----
From: Ford, Mike [LSS] [mailto:M.Ford@lmu.ac.uk]
Sent: woensdag 16 juli 2003 12:20
To: 'frederik feys'; php-general@lists.php.net
Subject: RE: [PHP] headers already sent and cookie problem
> -----Original Message-----
> From: frederik feys [mailto:frederikfeys@pandora.be]
> Sent: 16 July 2003 10:21
>
> One nasty thing to debug is that the error only shows up from time to
> time.
> So now everything seems OK.
>
> What do i have now?
> I start my code with session_start
> Then include some files. The last one is get_cartID.php (remember?)
> Then i use several functions to have cart functionallity.
> In show_cart i include my page heading and then output
> further body and
> footer content.
> When I put the get_cartID include file AFTER include
> "heading.php" into
> my show cart function, the other functions start complaining
> they can't
> access the function get_cartID.
> Lots of text, sorry for that. But I still don't have the clue.
> Maybe you like to see my code?
Yes, I think so -- I can't visualize enough of what's going on from your
description to make further suggestions about what you might need to
look
at.
From the sound of it, your files are quite big, so the best thing would
be
if you can put them up (as .phps or .txt) on your Web server and post
their
URLs to the list. If you can't do that, attach them to an email as .txt
files.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211