Tag Archives: PHP

E-mail Results of MySQL Query with PHP

I was in need of a simple house-keeping script, but couldn’t find anything simple. So I knocked this, simplified, up: <?php $to = ‘to@me.com’; $subject = ‘SQL results’; $headers = ‘From: me@me.com’ . “\r\n” . ‘X-Mailer: PHP/’ . phpversion(); $dbname … Continue reading

Posted in Dev | Tagged , , | Comments Off

PHP and Mac OSX

For my reference only (Leopard 10.5.2): sudo nano /etc/apache2/httpd.conf uncomment following line: LoadModule php5_module libexec/apache2/libphp5.so Then restart apache. Put files in /Library/WebServer/Documents/ This also led me to figure out where the damn hash key (#) might be hiding on the … Continue reading

Posted in Uncategorized | Tagged , | Comments Off