Hi guys, i have a problem.. basically this is my part of my code
what my aim is is so that when a user goes to mysite.com?s=chatroom1Code:<?php $s = $_GET['s']; $shout_file ="$s.php" file_put_contents($shout_file, $chat_line, FILE_APPEND);
the chatroom will write the message to $shout_file
(chatroom1.php)
same if they go to ?s=chatroom2
e,t,c
now the issue is, that its not writing to the $shout_file but it defo is getting the ?s= cause if i put print $s;
it prints it to the page... which is odd
but if i change it to $shout_file ="chatroom1.php"
it works perfect..
Any ideas why?
Thanks,
Jamie.




Reply With Quote