Wednesday, September 11, 2013

getting a all css files of an HTML web page

getting a all css files of an HTML web page

I'm trying to get all css files of an html file from URL.
I know that if I want to get the HTML code it is easy - just using PHP
function - "file_get_contents".
but the question is if I could search easily inside an a URL of HTML and
get from there the files or content of all related CSS files?
Note - I want to build an engine for getting a lot of CSS files, this is
why just reading the source is not enough..
Thanks,

No comments:

Post a Comment