$ grep -r "#file" ./posts
Tag

#file

// 6 matches

Cannot send mail in Mac OS X 10.8 Mountain Lion

There is an error while sending mail in Mac OS X Mountain Lion 10.8: send-mail: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directory To fix just run in terminal: sudo mkdir -p...

Scanning for Viruses Using PHP and ClamAV

Here what I found and like most. PHP Code for directory scanning: // Set the allowed types for reading and upload. $types = array ('jpg', 'jpeg', 'txt'); // Start a variable. $dir_files = array(); //...

PHP Get File Extension

Just some examples: $filename = 'sample.gif'; // 1. The "explode/end" approach $ext = end(explode('.', $filename)); // 2. The "strrchr" approach $ext = substr(strrchr($filename, '.'), 1); // 3. The...

IT-Digest AI Assistant