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 Link to comment https://forums.phpfreaks.com/topic/47117-reading-flat-files/ Share on other sites More sharing options...
tarun Posted April 15, 2007 Author Share Posted April 15, 2007 BuMp Link to comment https://forums.phpfreaks.com/topic/47117-reading-flat-files/#findComment-229760 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]); // ... } ?> Link to comment https://forums.phpfreaks.com/topic/47117-reading-flat-files/#findComment-229763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.