<?php

require_once('Classloader.php');

/*
 * Load xmlrpc.inc if it isn't already loaded.
 *
 * We HIGHLY recommend using the included version. It contains a few additions
 * that work around bugs in the Infusionsoft API.
 */
if(!function_exists('xmlrpc_encode_entitites') && !class_exists('xmlrpcresp')) {
    require_once(__DIR__ . '/xmlrpc.inc');
}

$classLoader = new Infusionsoft_Classloader();
spl_autoload_register(array(&$classLoader, "loadClass"));

// Load config file if it exists. You can use the SDK without a config file.
if(file_exists(__DIR__ . '/config.php')){
    require(__DIR__ . '/config.php');
}

<?php

require_once('Classloader.php');

/*
 * Load xmlrpc.inc if it isn't already loaded.
 *
 * We HIGHLY recommend using the included version. It contains a few additions
 * that work around bugs in the Infusionsoft API.
 */
if(!function_exists('xmlrpc_encode_entitites') && !class_exists('xmlrpcresp')) {
    require_once(dirname(__FILE__) . '/xmlrpc.inc');
}

$classLoader = new Infusionsoft_Classloader();
spl_autoload_register(array(&$classLoader, "loadClass"));

// Load config file if it exists. You can use the SDK without a config file.
if(file_exists(dirname(__FILE__) . '/config.php')){
    require(dirname(__FILE__) . '/config.php');
}

Change __DIR__ to dirname(__FILE__) to make compatible with PHP 5.2
Change __DIR__ to dirname(__FILE__) to make compatible with PHP 5.2
