tarun Posted April 15, 2007 Share Posted April 15, 2007 Okay So This Is My Flat File: user1|pass1|admin user2|pass2|user user3|pass3|user Okay Do I Extract These Fields An Store Them In A Variable By The Way Its For A Login Script If That Helps... ALSO Any Other Help Appreciated Thnx, Tarun Quote Link to comment Share on other sites More sharing options...
tarun Posted April 15, 2007 Author Share Posted April 15, 2007 BuMp Quote Link to comment Share on other sites More sharing options...
ignace Posted April 15, 2007 Share Posted April 15, 2007 <?PHP $aFile = file('yourfile.flat'); for ($i = 0; $i < count($aFile); $i++) { list($user, $pass, $name) = explode('|', $aFile[$i]); // ... } ?> Quote Link to comment 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.