 |
|
Innovation award
 Nominee: 1x |
This class can execute external PHP scripts in a separate process.
It uses PHP CLI version to execute a given external scripts as a separate process, so if it fails the calling script does not fail too.
The class provides options to change the root file system path before executing, pass GET, POST, COOKIE and SESSION variables, as well other PHP options like display_errors, memory_limit, max_execution_time, disable_functions, etc..
 July 2011
Number 2
Prize: One subscription to the PDF edition of the PHP Architect magazine |
Sometimes you may need to execute PHP scripts from third parties that you may not be able to trust, as such scripts can do something harmful.
This class provides a clever solution to execute untrusted PHP scripts by running them with the PHP cli program as a separate process.
It passes a separate set of values to request variables and changes the root of the file system, so the untrusted scripts do not have access to privileged information.
Clever approach to execute untrusted PHP scripts securely.
Manuel Lemos |
| Project record: |
phpsandbox |
| Popularity score: |
16.67 |
| Vitality score: |
1.45 |
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
invalid.php |
Data |
Invalid PHP file to fail lint test |
malicious.php |
Data |
A sample malicious PHP file |
recon.php |
Data |
An enviroment based PHP reconisence script |
slow.php |
Data |
A sample script that runs longer than the time limit |
trusted.php |
Data |
A trusted PHP script |
valid.php |
Data |
A sample valid PHP file |