title: Connecting to Azure SQL with PHP/Codeigniter
body: <p>i've been wrestling with connecting to azure for the last day or so. </p>
  
  <p>i've gone through all the steps here <a href="https://github.com/WindowsAzure/azure-sdk-for-php" rel="nofollow">https://github.com/WindowsAzure/azure-sdk-for-php</a> up to the block here:</p>
  
  <pre><code>DefaultEndpointsProtocol=[http|https];AccountName=[yourAccount];AccountKey=[yourKey]
  </code></pre>
  
  <p>i think the namespace call prior to that isn't effective, though i'm unsure.</p>
  
  <p>when i try to call the class like this</p>
  
  <pre><code>$tableRestProxy = ServicesBuilder-&gt;getInstance()-&gt;createTableService($connectionString);
  </code></pre>
  
  <p>i get the following error: </p>
  
  <pre><code>syntax error, unexpected '-&gt;' (T_OBJECT_OPERATOR)
  </code></pre>
  
  <p>and if i change the "ServicesBuilder->" to "ServicesBuilder::" (as seen <a href="http://www.windowsazure.com/en-us/develop/php/how-to-guides/table-service/#RetrieveEntity" rel="nofollow">here</a>)I get this error:</p>
  
  <pre><code>Fatal error: Class 'ServicesBuilder' not found
  </code></pre>
  
  <p>i really just have no clue what i'm missing at this point and can't think of anything else to attempt.</p>
  
  <p>any help in the right direction to just get a connection would be so greatly appreciated. one more thing to note: i'm working in codeigniter and have <a href="https://github.com/thomasantony/codeigniter-azure" rel="nofollow">this</a> library included, though i've seen no use for it as of yet since i can't even connect to the db :\</p>
  
  <p>thanks for any assistance-</p>