Peuplarchie Posted July 1, 2009 Share Posted July 1, 2009 Good day to you all, stupid as it sound, all the thing that I have tried to match a variable into a text file and execute according to it result. $active = "user_list.txt"; $pos = strpos($active, $_SESSION['username']); if ($pos === false) { echo "<b id=\"userinfo\"><img src=\"enligne.png\" valign=\"bottom\" width=\"13px\"/></b>"; } else { echo "<b id=\"userinfo\"><img src=\"horsligne.png\" valign=\"bottom\" width=\"13px\"/></b>"; } Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/164406-match-var-in-text-file/ Share on other sites More sharing options...
Mark Baker Posted July 1, 2009 Share Posted July 1, 2009 Already responded on devnetwork forums: search the file, not the filename Quote Link to comment https://forums.phpfreaks.com/topic/164406-match-var-in-text-file/#findComment-867236 Share on other sites More sharing options...
Peuplarchie Posted July 1, 2009 Author Share Posted July 1, 2009 y'a Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/164406-match-var-in-text-file/#findComment-867324 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.