Accessing / Connecting to a Sybase database from PHP running under Linux
hello everyone.. good day to all.. this is my first post in this forum, and i am hoping that i can get answers....
i am a newbie in linux... and since i am a newbie, i get some trouble setting up good environment in linux.. i have problem regarding connecting php(under linux) to a sybase server(under windows),,, is there anyway connecting this two technologies?.. i am hoping for your kind help...thank you so much everyone... |
|
Quote:
|
good day everyone... does anyone of you knows how to connect to sybase database from linux..
|
Not sure, I've never used sybase in Linux.
All my experience so far was MySQL based. In order to use MySQL with PHP and Apache in Linux, I first needed to compile and install MySQL. E. g. you must either compile Sybase and start it running, or install it somehow using your distro's package manager. Then, once it is running, you may need to compile PHP or install PHP in such a way / from such a package that it has sybase support available. Then you'll need to compile / install Apache with APXS / APXS2 (AFAIK) support so that it can work with PHP. See if you do a Google search for something like install sybase linux compiling sybase in linux installing sybase in linux or using sybase php linux etc. If you get anything helpful. |
E. g. part of my PHP configure line when compiling it is:
Code:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/lib/mysql A. Tell PHP to include MySQL support B. Tell PHP where to "talk" to MySQL Logically I can surmise that you'll need something similar / the Sybase equivalent passed to PHP if you are going to compile it yourself, to get it to work with Sybase... |
thank you so much rylan76.. yeah i try to search compiling sybase in linux.. thanks for all the effort.. i will you posted as soon as i test my server. thanks a lot..
|
" $]./configure --prefix=/usr/local/freetds --enable-msdblib "
--- i have search some configuration in fretds to enable msdlib, is there any configuration with freetds to enable sybase?.. thanks so much for the help... |
All times are GMT -5. The time now is 11:18 PM. |