URL Parser in PHP, extracts URL parts + hostname parts