?
Solved

Commands

Posted on 2002-05-07
3
Medium Priority
?
215 Views
Last Modified: 2006-11-17
Can i use PHP to

1, restart sendmail
2, run the useradd command
3, append information to a file

if poss i need to code to do these
0
Comment
Question by:keano84
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
lokeshv earned 400 total points
ID: 6993624
yes u can..

check this ..

http://www.php.net/manual/en/ref.exec.php


Lk
0
 

Author Comment

by:keano84
ID: 6993630
thanks
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6996634
You can use system(), exec(), passthru(), popen(), escapeshellcmd(), and the backtick operator.

Best option would be backtick operator.

JD
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question