From: "Gnanavel" <[EMAIL PROTECTED]>

> 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

Riddle me this... exec() returns the last line of output from the result of
the command. What is the last line of output when you run "cp file1 file2"
from the command line?

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to