[PHP-DB] PHP and MSSQL on Linux

2005-11-02 Thread php
I originally posted this to the general discussion but wanted to see if anyone on this list had an idea. The issue is trying to connect to the MSSQL with PHP from a linux box (Fedora Core 4 in this instance) > An interesting development. I found some reference to running my PHP > script from th

Re: [PHP-DB] PHP and MSSQL on Linux

2005-11-02 Thread Micah Stevens
Run it from the command line as the apache user. See if that makes a difference. I'd guess not though. Apache's php module doesn't really put any restrictions that I know of on the scripting.. that's a strange effect.. On Wednesday 02 November 2005 10:54 am, [EMAIL PROTECTED] wrote: > I origi

Re: Re: [PHP-DB] PHP and MSSQL on Linux

2005-11-02 Thread php
I have the freetds installed and am able to communicate with MSSQL, but only when i run the script from the command line. When I run it from a webbrowser, it fails. Robbert Joseph Crawford <[EMAIL PROTECTED]> wrote on 11/02/2005, 08:00:43 PM: > I attempted this a while back for a client who use

Re: Re: [PHP-DB] PHP and MSSQL on Linux

2005-11-02 Thread php
I ran it as the apache user and it worked fine (from the command line). I do notice that when I run a system command using the exec or system functions, I get nothing back on some of the commands (primarily traceroute and ping). Others do work (whoami) Robbert Micah Stevens <[EMAIL PROTECTED

Re: [PHP-DB] PHP and MSSQL on Linux

2005-11-02 Thread Micah Stevens
System commands are supposed to output errors on STERR, not on STOUT, php's system commands only grab STOUT so if there's an error you'll get no output.. You need to redirect STERR to STOUT when you issue the command.. Just put this at the end of your command: 2>&1 Don't know if that's the i