As Richard Davey has pointed out - there is no reason why your approach in itself
would cause the error message you are getting.
I did a similar thing with a site I created and was plagued with similar error
messages but the problem wasn't due to sessions but due to the way in which I tried to
add a different header section to the scripts. This isn't straightforward with PhpBB
because of the way in which some of the scripts use redirects. Perhaps this is causing
the problem.
HTH,
Michael Egan
-Original Message-
From: I.A. Gray [mailto:[EMAIL PROTECTED]
Sent: 14 July 2004 15:31
To: [EMAIL PROTECTED]
Subject: [PHP] get_browser and $_SERVER info from an IFRAME[Scanned]
Hi,
I have a php webstats script that puts info into a MYSQL database. I
include it at the top of each page that I have. I recently
put a php built
forum (PHPBB) on our website and wanted to include the php
script at the top
of that. Unfortunately as it already uses sessions, I kept on getting
'headers already sent' error messages for obvious reasons- I was using
sessions and so was PHPBB. I thought a good way round this
would be to have
an IFRAME on each of the forum pages where the IFRAME would be the PHP
webstats page. The only problem with this is that it logs
the information
of the IFRAME and not the main page. I use get_browser and
$_SERVER to log
things such as the IP address, browser, os, and work out the
country and the
name of the page being looked at.
$browser = get_browser();
$parenty = $browser-parent;
$browsery = $browser-platform;
$crawlery = $browser-crawler;
$cookiesy = $browser-cookies;
$pathy = $_SERVER['REQUEST_URI'];
$ipy = $_SERVER['REMOTE_ADDR'];
$hosty = gethostbyaddr($_SERVER['REMOTE_ADDR']);
All these will return details for the IFRAME. How do i get
details of the
main page?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The information contained in this email (and in any attachments sent with it) is
confidential. It is intended for the addressee only. Access to this email by anyone
else is unintended and unauthorized.
If you are not the original addressee, 3tc asks you to please maintain
confidentiality. If you have received this email in error please notify 3tc
immediately by replying to it, then destroy any copies and delete it from your
computer system.
Any use, dissemination, forwarding, printing or copying of this email by anyone except
the addressee in the normal course of his/her business, is strictly prohibited. 3tc
owns the copyright in this email and any document created by us and assert the right
to be identified as the author of it. Copyright has not been transferred to the
addressee.
We protect our systems with Sophos Anti-virus -
www.sophos.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php