https://github.com/milosdjakonovic/safexec
Attempt to create version of PHP's exec that is more safe and every day usage friendly.
https://github.com/milosdjakonovic/safexec
Last synced: 3 months ago
JSON representation
Attempt to create version of PHP's exec that is more safe and every day usage friendly.
- Host: GitHub
- URL: https://github.com/milosdjakonovic/safexec
- Owner: milosdjakonovic
- Created: 2019-07-25T14:48:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T15:24:41.000Z (almost 6 years ago)
- Last Synced: 2025-01-21T13:07:45.256Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# safexec
Attempt to create version of PHP's **exec()** that is more safe and every day usage friendly.
echo safexec('dig %s', $o, array('example.com'));
var_dump($o);echo safexec('dig %s', $o, array('example.com|FILTER_VALIDATE_DOMAIN'));
echo safexec('dig %s', $o, array('example.com|FILTER_SANITIZE_STRING'));
var_dump($o);echo safexec('php %s', $o2, array('--version'));
var_dump($o2);echo safexec('whoami');