PHPee.com PHP development forum
4imagesl... headers + pphlogger headers - error

 
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support
View previous topic :: View next topic  
Author Message
aresman



Joined: 12 Jul 2004
Posts: 8

PostPosted: Mon Aug 09, 2004 11:32 pm    Post subject: 4imagesl... headers + pphlogger headers - error Reply with quote
Hey all, I hope someone can help. I'm using 4images, and on the pages 4images generates, I'm getting this error:

[Mon Aug 9 18:14:16 2004] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/htdocs/users/name/name/xyz.com/4images/includes/template.php(133) : eval()'d code:80) in /home/htdocs/users/name/name/xyz.com/pphlogger/include/get_userdata.php on line 34

Any ideas on what I can do to fix this?

Nick
Back to top
View user's profile Send private message
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 797
Location: London, UK

PostPosted: Tue Aug 10, 2004 8:39 am    Post subject: Reply with quote
Are you using the JS code to log visitors or PHP?
Where did you put your counter code?

David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
aresman



Joined: 12 Jul 2004
Posts: 8

PostPosted: Wed Aug 11, 2004 9:03 pm    Post subject: Reply with quote
I'm using the php+js version...

The script is located in a footer.php file that is inserted at the bottom of each page using a php call...
Back to top
View user's profile Send private message
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 797
Location: London, UK

PostPosted: Wed Aug 11, 2004 10:27 pm    Post subject: Reply with quote
That would be why then.
If you read the manual, it states you need to place any PHP code used at the top of your pages, before any HTML output.

http://pphlogger.phpee.com/doc.html
http://pphlogger.phpee.com/doc_de.html

David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
aresman



Joined: 12 Jul 2004
Posts: 8

PostPosted: Wed Aug 11, 2004 10:50 pm    Post subject: Reply with quote
Oh, for some reason I missed that.

Just to confirm, since 4images uses HTML pages as it's template, I can just add the php call above the head, and it will still work, right?

Thanks.
Back to top
View user's profile Send private message
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 797
Location: London, UK

PostPosted: Thu Aug 12, 2004 7:16 am    Post subject: Reply with quote
In theory it should work, you won't know until you try though Smile

David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
V@no



Joined: 15 Nov 2003
Posts: 157

PostPosted: Wed Aug 18, 2004 7:14 am    Post subject: Reply with quote
unless u have supper-fast server u shouldnt do that, otherwise u'll extend opening your pages on as much time pphlogger needs to do the logging.
just to clarify:

Even though 4images uses HTML templates, it actualy "execute" them before it actualy showing the result to the browser (it calls compilation).
When it "execute" them, any PHP code inside the templates will be executed too, and untill they finished 4images will not continue do whatever it supposed to do next.

The php method basicaly needed if u want to log the bots (not many people out there whos browser doesnt support JS) or if u want completely hide the logger
If u think that php+js method is hiding the logger, u are wrong, because ones php part was executed, it echoing (prints) the JS part and when client's browser loaded the page it executes the JS part witch call pphlogger AGAIN! (double load on the server)
so basicaly JS+IMG method is all u need for the bases.
_________________
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8
Theme design based on Team 101 Designs, modified by Philip Iezzi