Hi,
I successfully compiled an Apache 1.3.19 with PHP4.0.5 on our Solaris 8 Sun/Sparc-server.
Since we have multiple Sybase ASE 11.9.2 Servers around, I really would like to get PHP connecting to one of those.
Compiling PHP4 with Sybase-CT support against the OpenClient libraries worked fine and my phpinfo() output reads like this:
sybase_ct
Sybase_CT Support enabled
Active Persistent Links 0
Active Links 0
Application Name PHP 4.0
Directive Local Value Master Value
sybct.allow_persistent
On On
sybct.hostname
WEBZOMBIE WEBZOMBIE
sybct.max_links
Unlimited Unlimited
sybct.max_persistent
Unlimited Unlimited
sybct.min_client_severity
10 10
sybct.min_server_severity
10 10
and my PHP.INI Section for Sybase looks like this:
sybct.hostname = WEBZOMBIE;
[Sybase-CT]
sybct.allow_persistent = On ; allow or prevent persistent link
sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
sybct.max_links = -1 ; maximum number of links (persistent+non persist
ent). -1 means no limit
sybct.min_server_severity = 10 ; minimum server message severity to display
sybct.min_client_severity = 10 ; minimum client message severity to display
sybct.interface_file = /opt/sybase/interfaces ;Location of sybase interface file
My sybase enviroment variable is set correctly, the interfaces file is where it should be, the server is in the interfaces file and still my php script won't connect to the database.
If I use
$dbcon = @sybase_connect($SERVER,$USER,$PASS) or die ('no connection to server');
The script will die at that point. I tried it with and without the @.
Anyone got a clue, what I did wrong and/or I can do to get this stuff working?
Thanks for your help.
Cheers,
Scotty