title: sasql_connect(): SQLAnywhere: [-100] Database server not found
body: <p>it's about more than one full day that i started sqlanywhere and i'm so interested to use it,</p>
  
  <p>i worked before with sqlsrv for ms sql server and connection via php ,</p>
  
  <p>but i have problem for connecting php to sqlanywhere</p>
  
  <p>here is the warning message when i try to run test.php</p>
  
  <hr>
  
  <p>Installation successful Using php-5.6.0_sqlanywhere.dll 
  Warning: sasql_connect(): SQLAnywhere: [-100] Database server not found in C:\xampp\htdocs\test.php on line 44</p>
  
  <h2>Connection failed</h2>
  
  <pre><code>$conn = sasql_connect( "UID=DBA;PWD=sql" );
  if( $conn ) {
      echo "Connected successfully\n";
      sasql_disconnect( $conn );
  } else {
      echo "Connection failed\n";
  }
  </code></pre>
  
  <hr>
  
  <p>I'm using xampp server php 5.6 and sqlanywhere 17 developer edition.</p>
  
  <p>already i downloaded the php extension and copied on ext and also added the line in php.ini (extension=php-5.6.0_sqlanywhere.dll)</p>
  
  <p>demo database i ran it with cmd : dbeng17 "%SQLANYSAMP17%\demo.db".
  via cmd i tried this also :
  C:>dbping -d -c "uid=dba;
  SQL Anywhere Server Ping U
  Connected to SQL Anywhere
  Ping database successful.</p>
  
  <p>but when i try via php it says: Warning: sasql_connect(): SQLAnywhere: [-100] Database server not found in C:\xampp\htdocs\test.php on line 44
  Connection failed</p>
  
  <p>please someone tell me what is the problem ?
  thank you very much.</p>