Archive for 'PHP'

Ubuntu PHP / Postfix Virtual Hosting Multiple Relay Host via Gmail

Ubuntu PHP / Postfix Virtual Hosting Multiple Relay Host via Gmail

When dealing with virtual hosting with a PHP lamp server the old way of just sending email via Sendmail right from your server can lead to bad things down the road spam-wise resulting in people not getting key emails from your LAMP hosted applications. I knew how I wanted to do it but did not know the technical way to make it happen. All of my domains email is hosted with google apps so I wanted to have each domain send all mail from my server to gmail smtp server (authenticated). However there are 5 domains all with their own username and passwords hosted at gmail. Here is how I accomplished it.

Valor Corporation API Inventory Check with PHP

Working with XML request via PHP can be pretty easy with the CURL functions built into PHP and make complex tasks seamless. We recently had a client that operated a retail site that need to check their distributors inventory levels consitantly through out the day and update their Magento shopping cart software inventory levels. It was a simple solution with some quick PHP implementation.