Apologies. huck is correct, it's obviously the $line_count variable which should be tested rather than $line in this instance.
This will only stop it processing the whole file. If you don't want to download the whole file then that's a different matter entirely and would require use of a technique such as HTTP Ranges.
In reply to Re^3: Split file, first 30 lines only
by hippo
in thread Split file, first 30 lines only
by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |