Forum

> > CS2D > Scripts > Chat error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Chat error

6 replies
To the start Previous 1 Next To the start

old Chat error

Marcell
Super User Off Offline

Quote
Welcome
I downloaded user mafia_man's script(Real-Time Chat) and tried to get work but for my luck it isn't worked well...
i got this "error" on php page:

", file_get_contents($path))); ?>

whats wrong?

GetLog.php
1
2
3
4
<?
	$path = "C:/2d/chatlog.txt";
	print(str_replace("~n", "<br>", file_get_contents($path)));
?>

Chat.php
Spoiler >

old Re: Chat error

Alistaire
User Off Offline

Quote
1
$path = "C:/2d/chatlog.txt";

Are you sure that's the correct path to the textlog.

old Re: Chat error

mafia_man
User Off Offline

Quote
I gonna look at the script now, and possibly update it.

Try using C:\2d\chatlog.txt (/ -> \) instead.

old Re: Chat error

Marcell
Super User Off Offline

Quote
okay, thanks

btw, i tried already your solution but not worked

old Re: Chat error

mafia_man
User Off Offline

Quote
Fixed the problem for him via TeamViewer, it was WAMP server not recognizing embedded php script because I used <? instead of <?php.

old Re: Chat error

Marcell
Super User Off Offline

Quote
yeah... i always used xampp.. but wamp has require less space, so thats why i installed it..

Thanks mafia_man!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview