User Control Panel
Advertisements

HELP US, HELP YOU!

if($msg eq something on a txt file) {

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
Juzz
Senior Member
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Fri Apr 16, 2004 7:11 am    Post subject: Reply with quote

Ok Ive put together some code, but in my brains how would I make it
Code:
if($msg eq the line on the text file) {<br />return "blarg";<br />}<br />


Any help would be great.
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Fri Apr 16, 2004 11:01 am    Post subject: Reply with quote

You would load the line of the file into a variable and check if the message equals the variable, ie:

if($msg eq $variable) {
return "blarg";
}
Back to top
Juzz
Senior Member
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Fri Apr 16, 2004 12:01 pm    Post subject: Reply with quote

yeah, I got it working Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group