• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Problems with ?> at the end of included files

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby decola » Wed Nov 01, 2006 10:59 pm

Hi everybody!
I've just tried PFC...simply marvellous! Congratulations to developers!

I've integrated PFC in my web portal.
At the top pf index.php, before including phpfreechat.class.php, I've included some php-file with class definitions useful for the integration.
A strange issue arise. If the included files end with ?>, PFC doesn't work!

Anybody can find out the problem?

Thanx
decola
New member
 
Posts: 6
Joined: Wed Nov 01, 2006 10:40 pm
Top

Postby phpfreechat » Thu Nov 02, 2006 8:45 am

Could you post the error message ?

But, I think this is because you have a line break or a space or a special charactere after your "?>"
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby decola » Thu Nov 02, 2006 8:41 pm

Is a line break or a space after "?>" so important?
I'll test it.

No error messages. The page loads but you can't see the user column and the messages column: a big white zone instead of them. And you can't write your message.
decola
New member
 
Posts: 6
Joined: Wed Nov 01, 2006 10:40 pm
Top

Postby phpfreechat » Thu Nov 02, 2006 9:16 pm

decola wrote:Is a line break or a space after "?>" so important?
I'll test it.

Yes because with a white space before session startion will throw an error.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby decola » Fri Nov 03, 2006 12:27 pm

You're right! A space after ?> is really important because a space begins the output of the webpage.
So the warning is about session:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/XXXXXXXXXXXXX/class_test.php:24)

The chat is "loaded" but you can't see the user column and the message column.


Then I've tried to add ob_start() at the start of the script and ob_end_flush() at the end of it. The warning message is not shown again but you can't see the user column and the message column, anyway.
decola
New member
 
Posts: 6
Joined: Wed Nov 01, 2006 10:40 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub