Created
March 15, 2013 10:25
-
-
Save daschl/5168856 to your computer and use it in GitHub Desktop.
quick replace with check.
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
<?php | |
if(!isset($argv[1]) || !isset($argv[2])) { | |
echo "Not enough arguments\n"; | |
exit(-1); | |
} | |
$infile = $argv[1]; | |
$outfile = $argv[2]; | |
$content = str_replace("couchbase.so", "couchbase.dll", file_get_contents($infile)); | |
file_put_contents($outfile, $content); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment