kippi Posted April 7, 2008 Share Posted April 7, 2008 Hey, I am sure this is really simple to do, but not sure where to look: # What's the best way to read after the line filename and finish at ----- so the output would be Z3dvb5RAZGlynJUFDNvLnVrCg== # # filename="sales" # # Z3dvb5RAZGlynJUFDNvLnVrCg== # # ------=_20080407170816_24869-- # # Any help would be great!! This is so I can run base64_decode and get the attachments. Many Thanks Chris Link to comment https://forums.phpfreaks.com/topic/100024-simple-search/ Share on other sites More sharing options...
craygo Posted April 7, 2008 Share Posted April 7, 2008 if it is always on the same line you can use file() and then just echo out the line number. file() will put each line into an array, then you can call the line you want. lines start with 0 so if you want line 7 it is actually 6 so example $data = file("data.txt"); $encode = $data[6]; Ray Link to comment https://forums.phpfreaks.com/topic/100024-simple-search/#findComment-511504 Share on other sites More sharing options...
kippi Posted April 7, 2008 Author Share Posted April 7, 2008 The problem its e-mails, so its never on the same line. Many Thanks Link to comment https://forums.phpfreaks.com/topic/100024-simple-search/#findComment-511514 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.