I hereby claim:
- I am twhitney11 on github.
- I am twhitney (https://keybase.io/twhitney) on keybase.
- I have a public key whose fingerprint is FFD0 FD1D EB66 A63A BF84 6690 8964 FE96 C521 CA7E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Tyler Whitney | |
* | |
* PHP Command line script that recursively finds and replaces a string within files of directories. | |
* | |
* Useage: php script.php DIRECTORY SEARCH-STRING REPLACE-STRING (PARTIAL-FILE-NAME-MATCH) | |
* | |
* The script will replace all strings matching SEARCH-STRING within all files inside of DIRECTORY and its sub-directories with REPLACE-STRING. | |
* If you provide the option PARTIAL-FILE-NAME-MATCH it will only replace occurences in files that their filenames contain the partail search. |
<?php | |
//Solr interfacing class | |
class Solr | |
{ | |
//For the constructor | |
public $solr_url; | |
public function __construct($url) | |
{ | |
$this->solr_url = $url; |