If its a simple html file, then its just marking up and displaying text, so you can just parse text itself. PHP is primarily used for database manipulating and is not actually displaying anything. It does, sometimes however, return some data. you can catch this data and--provided you know the format of the data--parse the response. Javascript files are Web apps, so they are more along the lines of programs than websites. I cant really think of any situation where you would need any info from a Javascript file though.