Host connection error indicates that NSconfig.php file is not being included properly. Check the path you are using to include this file.
Although not much relevant but You may get basic idea from this post http://dreamxtream.wordpress.com/2013/08/05/integrating-netsuite-php-toolkit-in-yii/