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 ! 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 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 ! 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
Archived
This topic is now archived and is closed to further replies.