Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - stupid PHP questions | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
windwaker Ball and Chain Trooper WHY ALL THE MAYONNAISE HATE Level: 61 Posts: 426/1797 EXP: 1860597 For next: 15999 Since: 03-15-04 Since last post: 4 days Last activity: 6 days |
| ||
I've been using PHP for quite a while, though there've been a few things that I haven't been able to find . I've been storing all of my data in text files. How can I count the lines in a text file? How do I take certain lines from a text file and put them all into one variable? (like if I wanted to take line x to y and put them in $linescontent) How do I search through a textfile for a line (say, if I'm looking for a specific IP, for purposes of writing the IP to the file if it isn't already there)? This'll help a lot if I get help . (edited by windwaker on 11-15-04 12:01 AM) |
|||
Gavin Fuzzy Rhinoceruses don't play games. They fucking charge your ass. Level: 43 Posts: 306/799 EXP: 551711 For next: 13335 Since: 03-15-04 From: IL, USA Since last post: 13 hours Last activity: 13 hours |
| ||
i apologize if it's a tad hack-ish (okay, more than a tad ;_ but I'm really not an expert PHP coder, nor am i feeling in a particularily organized mood. But nontheless, it gets done what you needed.
|
|||
windwaker Ball and Chain Trooper WHY ALL THE MAYONNAISE HATE Level: 61 Posts: 429/1797 EXP: 1860597 For next: 15999 Since: 03-15-04 Since last post: 4 days Last activity: 6 days |
| ||
This'll help -tons- and tons and tons. Thanks Gav! |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - stupid PHP questions | | | |