UPDATE (March 23rd 2012): I recently found a PHP binary that has a one-line installer. It is actively maintained by Liip AG. I now use that in combination with HomeBrew for all the rest. The Liip package is compiled with pdo_dblib which makes the problem described in this post a non-issue.
I recently found myself in the position of having to connect to a remote Microsoft SQL Server from my OSX system using PHP. The production environment runs Ubuntu LINUX, where connecting via mssql_connect() was no problem, but I develop on OSX and I could not get this to work initially.
Read More
ExactTarget SOAP upsert with PHP
There is quite a bit of documentation for the ExactTarget SOAP API that includes lots of code samples. But unfortunately the PHP code samples are not quite as plentiful as the .NET and Java ones.
After lots of searching and lot of trial and error I finally got my upsert working. An upsert is a SOAP method in the ExactTarget SOAP API that will either update or insert a record depending on whether it is already present or not.
Where $deoSo is a DataExtension Object that has been converted to a SoapVar and $soapClient is an ExactTarget soap client instance. The way you get the upsert behavior is to set the saveaction to ExactTarget_SaveAction::UpdateAdd.
If you are looking for a minimal wrapper library that includes the above method take a look at this library on gitub. This library gleans quite a few things from the Doctrine ORM, so if you are familiar with that you should feel right at home.