Changes

From SME Server
Jump to navigationJump to search
549 bytes added ,  19:24, 18 June 2009
m
→‎Check PHP: Added second tsql check
Line 157: Line 157:     
  expand-template /etc/odbc.ini
 
  expand-template /etc/odbc.ini
 +
 +
===Test again with tsql===
 +
Test connection, using input in freetds.conf:
 +
tsql -S xp3c -U testuser -P testpass
 +
 +
This should output something like this:
 +
locale is "sv_SE"
 +
locale charset is "ISO-8859-1"
 +
1>
 +
1> indicate that you are connected, logged in and the server are ready for SQL commands. Exit tsql console with:
 +
quit
    
===Check PHP===
 
===Check PHP===
Line 163: Line 174:     
PHP function odbc_connect (and related) should now work.
 
PHP function odbc_connect (and related) should now work.
 +
 +
Sample php code to check above could be (add standard html code):
 +
if (function_exists('odbc_connect'))
 +
{ echo "Function odbc_connect exists!"; }
 +
else { echo "Function odbc_connect does NOT exist!"; }
 +
and
 +
phpinfo();
    
=== Additional information ===
 
=== Additional information ===
206

edits

Navigation menu