Hi guys, i have a problem.. basically this is my part of my code


Code:
<?php
$s = $_GET['s'];
$shout_file ="$s.php"

file_put_contents($shout_file, $chat_line, FILE_APPEND);
what my aim is is so that when a user goes to mysite.com?s=chatroom1

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.