note 117131 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 22 Sep 2019 07:23:59 +0000 |
| Subject: | note 117131 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212282@lists.php.net to get a copy of this message | ||
Note Submitter: davideramondetti at yahoo dot it
----
Execute an a software, for an example my WordPress Plugin ExecMe, with an a error message and
success message:
<?php
function Execute($code)
{
$executing = exec($code);
if ($executing)
{
echo "Operation completed";
}
else
{
// to have the code of the anti-fatalerror contact me!
echo "Operation failed";
}
}
?>