I'm using file_get_contents to open a URL. But, I basically only need the first 20 lines of the code from the URL, but the URL splits out at least 300 lines.
Is there anyway to limit file_get_contents by size? This is so I won't have to download a 1 mb file.