• 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

XML Error Message Window

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

Post a reply
7 posts • Page 1 of 1

Postby Skygraphics » Thu Apr 06, 2006 9:59 am

Here have a look at this snapshop taken of the XML Error message!!!

http://www.skygraphics.co.za/Umhlobo22/ ... orMess.JPG

I really need urgent help with this.

Thanx in advance
Skygraphics
New member
 
Posts: 5
Joined: Thu Apr 06, 2006 9:13 am
Top

Postby phpfreechat » Thu Apr 06, 2006 10:12 am

You seems to have xml declaration output before the pfc object creation.
You need to use separate client/server script.
See the demo3 (http://www.phpfreechat.net/demo/pfc/dem ... client.php)
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Skygraphics » Thu Apr 06, 2006 10:43 am

So i need to paste the first part of the code into my "client" page with the variale _FILE_ changed to my site address right??

Example: __FILE__ TO --> http://www.mysite.com
Example: <?php

require_once dirname(http://www.mysite.com)."/../src/phpfreechat.class.php";
require_once "demo3_config.php";
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat demo</title>

<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>

<body>
<?php $chat->printChat(); ?>

<?php
// print the current file
echo "<h2>The source code</h2>";

$filename = __FILE__;
echo "<p><code>".$filename."</code></p>";
echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
$content = file_get_contents($filename);
echo htmlentities($content);
echo "</pre>";

$filename = dirname(__FILE__)."/demo3_config.php";
echo "<p><code>".$filename."</code></p>";
echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
$content = file_get_contents($filename);
echo htmlentities($content);
echo "</pre>";

$filename = dirname(__FILE__)."/demo3_server.php";
echo "<p><code>".$filename."</code></p>";
echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
$content = file_get_contents($filename);
echo htmlentities($content);
echo "</pre>";
?>
</body>

</html>
Skygraphics
New member
 
Posts: 5
Joined: Thu Apr 06, 2006 9:13 am
Top

Postby Skygraphics » Thu Apr 06, 2006 11:15 am

Please help!!!!
Skygraphics
New member
 
Posts: 5
Joined: Thu Apr 06, 2006 9:13 am
Top

Postby phpfreechat » Thu Apr 06, 2006 11:22 am

First of all, does the demo3 works on your server ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Skygraphics » Thu Apr 06, 2006 1:38 pm

Yup it works fine!!!
Which files do i need to use allow user to chat on demo 3???

Oh yes...
And as you know, i still need to know what to do with __FILE__ ???

Does it need to be replaced with the full Relative path???

Like this??

require_once dirname(__FILE__)."/../src/phpfreechat.class.php";

require_once dirname(/usr/local/4admin/apache/vhosts/MySite.com/httpdocs/ChatSet)."/../src/phpfreechat.class.php";


Please help!!??
Last edited by Skygraphics on Thu Apr 06, 2006 1:49 pm, edited 1 time in total.
Skygraphics
New member
 
Posts: 5
Joined: Thu Apr 06, 2006 9:13 am
Top

Postby phpfreechat » Thu Apr 06, 2006 1:59 pm

Here is the pointer to the php documentation ... :
- dirname documentation
- __FILE__ documentation

Hope that helps.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 22 guests

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