Re: PHP command for issuing UNIX command???
| From: | Scott Fletcher | Date: | Fri, 14 Dec 2001 18:58:39 +0000 |
| Subject: | Re: PHP command for issuing UNIX command??? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77770@lists.php.net to get a copy of this message | ||
I decided to try your suggestion and I did have a response.
The response I got is ...
-- clip --
sh[2]: drwxr-xr-x: not found.
sh[3]: drwxr-xr-x: not found.
sh[4]: -rwxrwxrwx: not found.
sh[5]: drwxr-xr-x: not found.
sh[6]: -rwxrwxrwx: not found.
sh[7]: -rw-r--r--: not found.
sh[8]: -rwxrwxrwx: not found.
-- clip --
Anyone know what it meant and what should I do?
Thanks,
Scott
"Scott Fletcher" <scott@abcoa.com> wrote in message
news:20011214183211.31865.qmail@pb1.pair.com...
> Wait a minute! I checked the Apache Error Log and it said file access
> permission do not allow the specified action. It can use the "cp" command
> and the original file. But it can not create the new file as result of
hte
> copy command. Why is that? What are the way around?
>
> Thanks,
> Scott
>
>
> "Scott Fletcher" <scott@abcoa.com> wrote in message
> news:20011214182406.24569.qmail@pb1.pair.com...
> > Hi!
> >
> > When I use those PHP function, 1) "exec()", 2) "passthru()" and 3)
> > "system()", they don't work. I suspect that I would need to enter the
> > Environment Variable so I did the "putenv()" for the PATH, BASH, etc.
But
> > still does not work. Check file Permission and so on. (Can't use fopen()
> to
> > create a file due to permission error).
> >
> > What am I missing here?
> >
> > Thanks,
> >
> > Scott
> >
> > "Scott Fletcher" <scott@abcoa.com> wrote in message
> > news:20011214155525.12862.qmail@pb1.pair.com...
> > > Hi!
> > >
> > > I wanted to know if there is a PHP code or function that would
allow
> > the
> > > PHP to issue the UNIX command.
> > >
> > > What I'm doing here is I'm trying to tell PHP to create a file by
> > > issuing hte UNIX command then I can use the PHP to open the file to
> enter
> > > the data. Once I'm done with the file, I can use the UNIX to run the
> > script
> > > in the file to communicate with the modem by executing the file. When
> I'm
> > > done then I can open an another file to grab the data that had be
> received
> > > by the modem and do the PHP things to do something with hte data.
When
> > > done, then I can use the PHP to tell UNIX to delete the file and
Voila!
> > >
> > > Thanks,
> > > Scott
> > >
> > >
> >
> >
>
>