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
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
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
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
yes, it's possible. I'm learning php myself. (I'm a CF junkie.)
I got this script from somewhere. I have the info on a backup CD at home.
I'll post it if you're having problems with the script below. (I did a
google for: ODBC connection mySQL, or something similar to that.)
The script below is wh
Sure, just use ODBC - it'll insulate you from issues like changing database
versions and platforms.
You can use native drivers or download ones from our site.
Let me know if I can help.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Univ