A php function to split a given file to parts based on the specified buffer size