Question

I have an Apache server running PHP 5.3.3. Our sybase ASE servers use HOSTNAME on connect for rudimentary ID and filtering - make sure prod hosts connect to prod, etc.

Is there any way to have sybase_connect() supply HOSTNAME on connection?

I also have ODBC configured (with DataDirect drivers); or is there a way to supply HOSTNAME on ODBC connects?

Was it helpful?

Solution

Use the source Luke...

The sybase_connect() code takes CT_HOSTNAME info from the INI string "sybct.hostname"

ini_set("sybct.hostname", $_SERVER['SERVER_NAME']);

Worked for me in Apache::PHP

Thanks all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top