Monthly Archive: March 2014

Send Email from a PHP Script Example

Send Email from a PHP Script Example To send a simple sample message, we could use: Email successfully sent! “);  } else {   echo(“Email delivery failed…“);  } ?> Share it..

Remove session files under /tmp weekly

Remove session files under /tmp weekly root@host [/scripts]# ll | grep cleanup.sh-rwxr-xr-x  1 root root      39 Nov 21 10:41 cleanup.sh*root@host [/scripts]# cat cleanup.shfind /tmp/  -name “sess_*” | xargs rm root@host [/scripts]#================================weekly on...

Find command

Recursive chmod only files within this folder: find . -type f -exec chmod 0644 {} ; Recursive chmod only folders within this folder: find . -type d -exec chmod 0755 {} ; into a...

Optimization WordPress Plugins & Solutions by W3 EDGE