Solved

Commands

Posted on 2002-05-07
3
214 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 100 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 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