Monthly Archives: January 2016

PHP ZEND autoloader code for Zend and Your classes

Simplest PHP ZEND autoloader code to autoload Zend classes and Your classes

<?php
require_once '/usr/lib/Zend/Loader/AutoloaderFactory.php';
require_once '/usr/lib/Zend/Loader/ClassMapAutoloader.php';

// ZEND CLASSES

$config = array(
    'Zend\Loader\StandardAutoloader' => array(
        'namespaces' => array(
            'Zend'      => '/usr/lib/Zend',
            'ZendXml'   => '/usr/lib/ZendXml',
        ),
    ),
);

Zend\Loader\AutoloaderFactory::factory($config);

// YOUR CLASSES

$loader = new Zend\Loader\ClassMapAutoloader();

// Register the class map:
$loader->registerAutoloadMap(__DIR__ . '/autoload_classmap.php');

// Register with spl_autoload:
$loader->register();
Advertisements

MS SQL Server SQLExpress 2014 TCP/IP

MS SQL Server 2014 SQL Express 2014 TCP/IP connections

SQL Server 2014 / SQL Express 2014

  • Enable MS SQL Server TCP/IP connections
  • Restart MS SQL Server
  • Check MS SQL Server Log for port being used
  • This may not be 1433 but might be 49445 instead
  • Enable port through firewall

SQL Server Client

  • Run Sql Server 2014 Managerment Studio
  • Connect via Server Name or IP and specify Port after a comma
    • MYSERVER,1433
    • 10.10.10,10,49445

GNU/Linux PHP PDO MS SqlServer & ODBC connectors and drivers

GNU/Linux PHP PDO MS SqlServer & ODBC connectors and drivers