Bug #1160: How to determine "interface" file location
| From: | biber at lanck dot ru | Date: | Thu, 18 Feb 1999 16:49:33 +0000 |
| Subject: | Bug #1160: How to determine "interface" file location | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4145@lists.php.net to get a copy of this message | ||
From: biber@lanck.ru
Operating system: FreeBSD 2.2.8
PHP version: 3.0.6
PHP Bug Type: Sybase (dblib) related
Bug description: How to determine "interface" file location
I have the following script:
#!/usr/local/bin/php
<?
$handle=sybase_connect('SEVER', 'user', 'passwd');
sybase_select_db('test_db');
$result=sybase_query("select * from state");
print "<table>";
while($row=sybase_fetch_array($result))
{
print "<tr><td>";
print $row[0];
print "</td></tr>";
print "</table>\n";
}
?>
When I run this script from my shell, and I have
$SYBASE=/right/dir in my environment, script run
successfull.
When I run script from Apache (1.3.4), I get
--------
connect: Can't assign requested address
DB-Library: Login incorrect.
--------
If I try to set up string "sybase.interface_file="/right/dir" in php.ini file,
I have failed run script both from Apache and from my shell.
Question: How php determine location interfaces file?
From user environment variable? I guess it right, becouse if I chenge somithing in
/right/dir/interfaces file, i see it during script execution. And how I can to set up this location
for runing from nobody:nobody (Apache)? In php-manual I can not find about
"sybase.interface_file" in php.ini.
Thank you.
/Serg
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net