Created
January 22, 2013 00:14
-
-
Save giltotherescue/4590824 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
preg_match_all("#[\"|']http://the.squidoocdn.com/(.+[\.v[\d]+]?\.css)[\"|']#", file_get_contents($argv[1]), $css); | |
print_r($css); | |
preg_match_all("#[\"|']http://the.squidoocdn.com/(.+[\.v[\d]+]?\.js)[\"|']#", file_get_contents($argv[1]), $js); | |
print_r($js); |
Sounds great. The only thing I'd do differently is use diff instead of flipping back and forth.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a quick and dirty way to extract all static CSS and JS files from a Squidoo URL designated by a command line arg.
php static_test.php http://www.squidoo.com/gil
I am using it to test whether changes made to the versioning system result in changes to HTML output. The version numbers should be consistent. Here's how I use it: