Configuration method for PHP connection Sybase under Win32 platform

xiaoxiao2021-03-06  112

1. Configure the PHP to confirm that there is a php_sybct.dll file in the extensions in the php directory. If not, download the new PHP installation package to edit php.ini, it may be found in two positions C: / Winnt / or C: / Windows Apache root directory # EXTENSION = php_sybct.dll Remove Note 2. Install Sybase Client If you already have Sybase, you should have a corresponding Sybase client program PHP connection Sybase requires several DLL files for Sybase, adding a data service for web databases for web databases. . Use the sybaseping tool to make sure the SybWeb service can ping the Sybase Server. Establish a connection to the database in the client after installation, assume that the connection is Sybase_DB3. Connect Sybase to restart the Apache service. At this time, PHPINFO is checked, you should see the information of Sybase_CT. Run the following code: $ CNN = Sybase_Connect ("Sybase_DB", "SA", "password"); the first parameter is the connection name set by our client. If there is no error message, it indicates that the connection is successful. Note: If you use IIS and Sybase-CT libraries, use PHP 4.0.6 or higher.

Reference Information:

Http://www.jfdown.com/infoview/article_806.htmlhttp://www.php.net/manual/en/ref.sybase.phpphpsybaseadminhttp://freshmeat.net/projects/phpsybaseadmin//phpsybaseAdmin/

转载请注明原文地址:https://www.9cbs.com/read-102994.html

New Post(0)