Solved

Commands

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
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…
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now