Twango Posted April 4, 2011 Share Posted April 4, 2011 I know this seems like a task... but I've done it in another language (I'm terrible at converting languages!)Most of you have probably never heard of this language (mIRC) unless you chill on IRC often...Anyways, I can give you the code if you know mIRC.It's pretty simple. I have 2 text files.Answers and questions. I'd want it to echo say, line one from "questions", user types in answer, then something like if ($_POST['Answer'] == getFromTxt("answers.txt").lines($currentline) { //Add points $currentline .= 1 } then repeat again...I have absoloutely NO idea how to do this, although I did it in mIRC.Again, if anyone knows how to script in mIRC I can give you the code to convert!Please help!~Twango Link to comment Share on other sites More sharing options...
justsomeguy Posted April 4, 2011 Share Posted April 4, 2011 You can use the file function to read the lines of a file into an array, and then you can access each line by number. That's probably a good place to start.http://www.php.net/manual/en/function.file.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.