Ah, yes I forgot a line in the while loop. Add this to the last line within the while() statement
preg_match_all("'data-post-url=\"(.+)\"'Uims",$file,$m);
You don't owe me anything, though you're welcome to get a domain at account . the . domain . name
If you're looking for deactivated tumblr accounts I may have a list based on some old rank checking.