Created
August 24, 2010 00:58
-
-
Save rbone/546680 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/php | |
indexer { | |
mem_limit = 256M | |
} | |
searchd | |
{ | |
port = 3312 | |
log = /var/log/sphinx/searchd.log | |
query_log = /var/log/sphinx/query.log | |
pid_file = /var/lib/sphinx/searchd.pid | |
} | |
<?php | |
$files = new DirectoryIterator('/home/rbone/projects/contests/db/sphinx/'); | |
foreach ($files as $file) | |
{ | |
if (!$file->isDot() && $file->isReadable()) | |
echo file_get_contents($file->getPathname()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bash version: