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
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
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
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
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