i´m trying to use a dos command with exec(), but whenever i load the page it opens a dos windows to execute the command, it closes it immediately and i never see anything on the page
any idea why is this happening?
exec() returns what the program prints to stdout. You'll can echo it, for instance. It pops up a DOS prompt because it has to run the command somehow.
Originally posted by Mordecai exec() returns what the program prints to stdout. You'll can echo it, for instance. It pops up a DOS prompt because it has to run the command somehow.
i´ll try, but i thought exec printed the result in a variable (second parameter in exec())
thanks