I need help with a script, I was thinking of making a chat script, but I cant figure it out how I can manage this. I want to make from a php and a text file with
no mysql or any sql database, because I was going to iframe it and make a lot of them so i should us mysql.
so far I got this
PHP Code:
<?php
//This is us me oppening the file
$file = "video1.txt";
$shout = fopen($file, 'r') or die("Can't open file");
//This is us seperating this file
$divide = explode("|||", $file);
//This is putting the the order
echo"Username:$file[0]<br>";
echo"Email:$file[1]<br>"
echo"Message:$file[2]<hr>"
?>
and for video1.txt file
Code:
Admin|||Naruto@admin.com|||Killer Site
It works so far, but I don't know how I can separate theses files so there will be more that 1 shout and i was wondering how long I should refresh it (remember its not shoutbox , but a comment box)