Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:11:17+00:00 2026-06-12T04:11:17+00:00

I must connect my Zend Framework 1.11 application with sybase 12.5.4. I need to

  • 0

I must connect my Zend Framework 1.11 application with sybase 12.5.4.

I need to know how to do that from Windows 7 AND from debian 6.

I had installed sybase client on my Windows and enabled the php_sybase_ct extension (sybase_ct appears on my phpinfo), but I even could connect with sybase_connect.

The following code:

$cnn = sybase_connect('server.com.br,port', 'user', 'psw', "iso_1", 'app');
sybase_select_db('db', $cnn);

returns an error:

sybase_connect() [function.sybase-connect]: Sybase: Unable to connect in C:\wamp\www\testesybase.php on line 3

Someone can, please, help me?

I’ve been looking for it for a looong time!

Thank you!

Update:

Since I got sybase_connect() connect working, now my issue is: How to make Zend Framework 1.11 connect on Sybase 12.5.4?

I read that PHP uses pdo_dblib – PDO(sybase: …) – to do that, but PHP5.3.10 on Windows doesn’t have this driver anymore!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:11:18+00:00Added an answer on June 12, 2026 at 4:11 am

    I got it working with Zend Framework by using PDO Driver for FreeTDS!

    FreeTDS installation

    You need to install php5-sybase (the Sybase connector provides the required libraries for connecting to the MSSQL Server and Sybase) and the freeTDS software and unixODBC.

    To install and configure FreeTDS, see this link.

    Also, this link provides a good read about FreeTDS installation.

    Configuring a connection string and conecting with Zend Framework 1.11

    Configure your connection on /etc/freetds/freetds.conf, like this:

    [MyServer]
    host = <<ip>>
    port = <<port>>
    # use 8.0 for newer versions of SQLSERVER
        tds version = 8.0
        # text size don't need to be such a high value, its just an example
        text size = 4294967295
        client charset = UTF-8
    

    Then, on Zend Framework 1.11, configure your connection like this:

    ;; BANCO DE DADOS LINUX
    database.adapter                = PDO_MSSQL
    database.params.pdoType         = dblib
    
    database.params.host            = MyServer
    database.params.dbname          = <<dbname>>
    database.params.username        = <<username>>
    database.params.password        = <<passwd>>
    database.params.driver_options.charset = UTF-8
    
    database.isDefaultTableAdapter  = true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows Service that must connect, via VPN, to the network in
I have an application that I develop in Silverlight and it must connect to
If we must connect the db (redis)every time we need to write to or
All I need to to do is to connect via https. Must I use
when i want to connect database in zend framework with zend_Db, in each controller
I have a ASP.Net C# application that needs to connect to an external API
iTunes Connect is saying that my application executable is missing required architecture. At least
I have a feeling that there must be client-server synchronization patterns out there. But
i must connect to a sql server with windows authentication sql server is on
I have created a simple JSF application, now must to connect to SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.