문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top