Solved

Commands

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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.

832 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