Re: Problem in executing linux command from PHP
| From: | David Smith | Date: | Tue, 02 Sep 2003 12:52:15 +0000 |
| Subject: | Re: Problem in executing linux command from PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30271@lists.php.net to get a copy of this message | ||
Gnanavel wrote:
I have problem in executing linux command $output=exec("ls -a"); echo "<pre>$output</pre>"; the above coding works, but $output=exec("cp file1 file2"); echo "<pre>$output</pre>"; does not works. can any one help me out of this problem When I was executing the "cp" command it doesn't return anything. But it returned the name of the last file when i executed the "ls" command"cp" does not return anything on the command line on success. --Dave