Re: Could someone look at my problem in shell-exec?
| From: | love jiangnan | Date: | Thu, 22 May 2003 20:30:45 +0000 |
| Subject: | Re: Could someone look at my problem in shell-exec? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148636@lists.php.net to get a copy of this message | ||
I have 25m space in the server of my university. I
can write ,modify file under my own account. In my
webpage, I want to allow user to download files from
different directory and server tar them to one file to
return to user.
LJ
--- R'twick Niceorgaw <public@utkalika.net> wrote:
> Does apache has write permission in the directory
> where you are trying to
> create the file?
>
> ----- Original Message -----
> From: "love jiangnan" <lovejiangnan2003@yahoo.com>
> To: <php-general@lists.php.net>
> Sent: Thursday, May 22, 2003 4:12 PM
> Subject: [PHP] Could someone look at my problem in
> shell-exec?
>
>
> > Hello, everybody,
> >
> >
> > I am a new user in PHP. When I try to execute
> shell
> > command in php, I met some problem.
> >
> >
> > Either I running shell_exec or backstick(``), when
> I
> > asked server to run tar command, it did not
> respond.
> >
> > For example, if I type
ls -al, cd
> > $dir, `more
> > $file`, the server worked properly. However, when
> I
> > type `tar cvf a.out $filename', it doesn't work.
> When
> > I type tar tvf b.out(b.out is the result when I
> run
> > tar on server instead from php`), it works OK.
> >
> > Does someone else meet the same problem like me?
> If
> > the server is in safemode, it should not run any
> shell
> > command in php, right? Since my server can run
> other
> > shell command, why cannot it run tar cvf?
> >
> > I had read a lot about it from manul but did not
> get
> > the answer. could you help me?
> >
> > Thank you very much.
> >
> > LJ
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com