Re: PHP command for issuing UNIX command???
| From: | Dan McCullough | Date: | Fri, 14 Dec 2001 17:10:06 +0000 |
| Subject: | Re: PHP command for issuing UNIX command??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77763@lists.php.net to get a copy of this message | ||
check out system();
--- R'twick Niceorgaw <rtwick@niceorgaw.com> wrote:
> take a look at http://www.php.net/manual/en/ref.exec.php for
> various methods
> to run an external program.
>
> Alternatively, you can use fopen
> (http://www.php.net/manual/en/function.fopen.php) to create the non existent
> file in PHP itself no need to run an external command (fopen (file_name,
> "w") will create the file if it doesn't exist. Similarly delete
> (http://www.php.net/manual/en/function.delete.php) will delete a file in
> PHP.
>
> also you can
> ----- Original Message -----
> From: "Scott Fletcher" <scott@abcoa.com>
> To: <php-general@lists.php.net>
> Sent: Friday, December 14, 2001 10:54 AM
> Subject: [PHP] PHP command for issuing UNIX command???
>
>
> > 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
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
=====
dan mccullough
--------------------------------------------------------
"Theres no such thing as a problem unless the servers are on fire!"
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com