Quick mysql_connect php script
The below script is a quick PHP script that connects to a mysql database to test connectivity. <html> <body> <? $host = "xxx.xxx.xxx.xxx"; $username = "username"; $password = "password"; /* Connecting, selecting database */ $conn =...
PHP script to send email
Very simple php script that sends email. I use this from time to time to test the functionality of sendmail and php. <?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "emailtest@YOURDOMAIN"; $to = "YOUREMAILADDRESS"; $subject = "PHP Mail Test...
The Shaolin Blog for Michael J. Roberts