Hi guys, i have found a solution to making a chatroom...
i have a PHP script right? it says:
that is PHP 3 code and what it does is it makes a textfile's variable called 'count' go up one. i use loadVariables to load this script into flash.PHP Code:<?php
//Reading the file
$file = fopen("count.txt", "r");
$count = fread($file, 1024);
fclose($file);
//Increasing the count
$count = explode("=", $count);
$count[1] = $count[1]+1;
//Writing to file
$file = fopen("count.txt", "w+");
fwrite($file, "count=".$count[1]);
fclose($file);
//Returning the count
print "count=".$count[1];
?>
i don't have a proper understanding of PHP so i would like somebody to change this so that:
there is a variable inside called "mes". what i want to do is make it so that the variable mes is the message that somebody sends. i want to write this variable into the txt file, replacing the previous one.
please help, this solved will let me make a chatroomthank you to anybody who helps




thank you to anybody who helps

Reply With Quote