Commands

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
keano84Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
lokeshvConnect With a Mentor Commented:
yes u can..

check this ..

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


Lk
0
 
keano84Author Commented:
thanks
0
 
dkjariwalaCommented:
You can use system(), exec(), passthru(), popen(), escapeshellcmd(), and the backtick operator.

Best option would be backtick operator.

JD
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.