One Line PERL Find / Replace

Uncategorized 4 Comments »

perl -pi -e ‘s/find/replace/g’ file.name(s)

Exclude Files When Using Grep

Uncategorized No Comments »

grep -ir –exclude=*.{ext1,ext2,ext3} ‘searchterm’ .

I needed this when searching for terms that were in javascript and SQL files.

It’s not pretty when they’re included.

Debug: file_get_contents($url);

Uncategorized 1 Comment »

There is a variable $http_response_header

It contains the header reply information from the server…

$var = file_get_contents($url);

var_dump($http_response_header);

This really helped me figure out some problems when trying to cache google charts.

WP Theme & Icons by N.Design Studio | Akismet has gobbled 335,630 spam comments...Mmmm Tasty :-)
Entries RSS Comments RSS Log in