PHP - function

This is a discussion on PHP - function within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello Which function in PHP should I use to execute unix command. For example I'd like to execute from ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2004
Pawel
 
Posts: n/a
Default PHP - function

Hello

Which function in PHP should I use to execute unix command. For example I'd
like to execute from PHP script command: /usr/bin/ps.

Please help me

--

Pawel


Reply With Quote
  #2 (permalink)  
Old 02-24-2004
Duyet The Vo
 
Posts: n/a
Default Re: PHP - function

exec() or system()

See http://www.php.net/docs.php for details info


"Pawel" <pawelot@tenbit.pl> wrote in message
news:c1fk0k$l3c$1@nemesis.news.tpi.pl...
> Hello
>
> Which function in PHP should I use to execute unix command. For example

I'd
> like to execute from PHP script command: /usr/bin/ps.
>
> Please help me
>
> --
>
> Pawel
>
>



Reply With Quote
  #3 (permalink)  
Old 02-24-2004
Tyrone Slothrop
 
Posts: n/a
Default Re: PHP - function

On Tue, 24 Feb 2004 14:35:26 +0100, "Pawel" <pawelot@tenbit.pl> wrote:

>Hello
>
>Which function in PHP should I use to execute unix command. For example I'd
>like to execute from PHP script command: /usr/bin/ps.
>
>Please help me


See:
http://www.php.net/manual/en/function.system.php

Also look at exec and passthru.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0