|
|
shell_exec() - execute shell command using php file - PHP
|
Views : 276
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
shell_exec()
This function is used to execute a shell command via PHP file. It returns complete output as a string.
Example: <?php
$output = shell_exec('ls -lart');
echo " $output ";
?>
The above code will list the permissions of the file, user of the file, owner of the file, size of the file, date of creation and filename. |
|
By - Nirmala, On - 2010-04-07 |
|
|
|