PHP running system commands with exec

To execure a system command on a server, use PHP exec function.

For example

<?php

@exec("nslookup yahoo.com 2>&1", $result);

print_r($result);

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *