Php code using dom parsing to find all the links present in the url