var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Open text file and parase [PHP]
I need to open a textfile with like 20,000 lines. I need to take each line and split it up and do something with it. Anyone know how to do this? Thanks.
Of course, change the echo to do whatever you want.
$contents = file("bigfile.txt");
while(list($linenumber,$linecontents) = each($contents))
echo "At line number ".$linenumber." the contents are ".$linecontents."<br />";
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise