|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1160 How to determine "interface" file location
Submitted: 1999-02-18 11:49 UTC Modified: 1999-12-13 15:52 UTC
From: biber at lanck dot ru Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.6 OS: FreeBSD 2.2.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: biber at lanck dot ru
New email:
PHP Version: OS:


 [1999-02-18 11:49 UTC] biber at lanck dot ru
I have the following script:

$handle=sybase_connect('SEVER', 'user', 'passwd');
$result=sybase_query("select * from state");
print "<table>";
  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 
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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-14 04:13 UTC] joey at cvs dot php dot net
Set the environment variable $SYBASE = to sybase home dir for user the
web server is running as...not that I know how you are running sybase on
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 03:01:32 2024 UTC