Skip to content

Instantly share code, notes, and snippets.

@kzrl
Created October 3, 2013 08:02
Show Gist options
  • Save kzrl/6806677 to your computer and use it in GitHub Desktop.
Save kzrl/6806677 to your computer and use it in GitHub Desktop.
PHP Infusionsoft SDK - very slow initialization
<?php
// Infusionsoft Domain for connection
define('INFUSIONSOFT_DOMAIN', 'zhXXX');
define('INFUSIONSOFT_KEY', 'XXXXXXXXXXXXXXXXXXXXXX');
// get the isdk and other required files
require_once 'lib/iSDK-new/src/isdk.php';
$app = new ISDK;
$app->enableLogging(1);
$app->cfgCon(INFUSIONSOFT_DOMAIN);
die("HELLO");
/**
Output:
$ time php test.php
PHP Notice: Undefined index: SERVER_NAME in /home/ubuntu/infusionsoft-testing/lib/iSDK-new/src/xmlrpc-3.0/lib/xmlrpc.inc on line 38
HELLO
real 0m15.774s
user 0m0.048s
sys 0m0.072s
--
Does anyone have ideas why this is so slow?
$ php -v
PHP 5.4.6-1ubuntu1.4 (cli) (built: Sep 4 2013 19:36:09)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment