freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] php unable to connect ms sql
- Date: Wed, 28 Mar 2007 00:27:00 -0400
James liu wrote:
> putenv("/usr/local/freetds/etc/freetds.conf");
Two things:
1. Unless you used the --prefix option with configure, freetds.conf is
normally at /usr/local/etc/freetds.conf.
2. When using PHP with a webserver, make sure the webserver has
permissions to read freetds.conf. Normally the "nobody" account owns
httpd; it has almost no privileges.
I don't use PHP. Perhaps you can put something like
<?php
$file = file_get_contents ('/usr/local/etc/freetds.conf');
Echo $file;
?>
in your script to make sure you have the right location and the file is
readable to your process?
http://php.about.com/od/phpfunctions/g/file_get_conten.htm
HTH.
--jkl
-
[freetds] php unable to connect ms sql,
James liu, 03/27/2007
-
Re: [freetds] php unable to connect ms sql,
James K. Lowden, 03/28/2007
- Re: [freetds] php unable to connect ms sql, James liu, 03/28/2007
- Re: [freetds] php unable to connect ms sql, Daniel Fazekas, 03/28/2007
-
Re: [freetds] php unable to connect ms sql,
James K. Lowden, 03/28/2007
Archive powered by MHonArc 2.6.24.