Send email from localhost/WAMP Server using sendmail

The new WAMP Server’s PHP and stand-alone PHP v5.3+, are now NOT available with some of the extensions required to implement the previous solution [PHPMailer] (there is a workaround to install the missing extension(s), described in the linked article). So an alternate and much less efficient (slower, but negligible low-speed for development platform (WAMP/localhost)) solution can be implemented, as below:

Continue reading “Send email from localhost/WAMP Server using sendmail”

Write to a log file with PHP

As I caught myself in process of writing PHP "log" function several times I have finally decided to create a simple Logging PHP class. After Logging class initialization, first call of lwrite method will open log file implicitly and write line to the file. Every other lwrite will use already opened file pointer until closing file with lclose. It is always a good idea to close a file when it’s over. This should prevent file from corruption and overhead in closing file is negligible.

Continue reading “Write to a log file with PHP”

Switching the maildriver from qmail to Postfix using Autoinstaller fails on RHEL/CentOS-6.4

Switching the maildriver from qmail to Postfix using Autoinstaller fails on RHEL/CentOS – 6.4 with errors like the following:

Continue reading “Switching the maildriver from qmail to Postfix using Autoinstaller fails on RHEL/CentOS-6.4”