----- Original Message -----
From: Sean Burlington <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 07, 2003 3:26 PM
Subject: Re: [PHP-DB] Problem in executing linux command from PHP
> Gnanavel wrote:
> >>>$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"
> >>`cp file1 file2` doesn't return anything - so your script probably is
> >>working as it correctly returns nothing.
> > Thanks for help
> > The problem is the file is not copied to destination folder. I
> > the problem for all file modification commands like "mv" etc..
> > I am unable run a shell script file from php which contains file
> > modification commands.
> the scripts are probably running as a user with insufficient rights to
> perform those operations
> to find out which user you are running as try
> <?php echo `whoami`; ?>
Thanks for help.
Now it works.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php