Tag: PHP

PEAR Mail with Google Business Apps SMTP

If you are using PEAR Mail with Google Business Apps SMTP and are running into connection timeout errors, with the following configuration: $smtp = Mail::factory(‘smtp’, array (‘host’ => $host, ‘port’ => ‘465’, ‘auth’ => true, ‘username’ => $username, ‘password’ => $password)); Try changing the port to 587 (Port for TLS/STARTTLS)

Keep heroku from falling asleep / idling (even with PHP)

Ruby on Rails Scenario The easiest way to keep a Rails App from idling is to use New Relic Standard (free), in conjunction with their availability monitoring. You can do this in a couple of ways: Issue the following command with the Heroku Toolkit heroku addons:add newrelic:stark Or, login to your heroku account and provision […]