freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James liu" <liuping.james AT gmail.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] php unable to connect ms sql
- Date: Wed, 28 Mar 2007 13:52:24 +0800
Yep,,,i find the problem.
I install freetds when i install php5-extensions
so i always config pre version freetds..
so it not work.
Thk jkl.
2007/3/28, James K. Lowden <jklowden AT freetds.org>:
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 mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--
regards
jl
-
[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.