| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of Paul Fryer | > | PHP Sandbox | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Freshmeat project | Applications | ||||||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Language | Constructs to assist in the language control | View top rated classes |
| Innovation Award | ||
![]() 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 |
| Freshmeat project | ||
| Project record: | phpsandbox |
|---|---|
| Popularity score: | 15.94 |
| Vitality score: | 1.43 |
| User ratings | ||
| There are not enough user ratings to display for this class. |
| Applications that use this class | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Lic. | Copyright Information LGPL | |||
| Lic. | LGPL | |||
| Example | Example usage files | |||
| Aux. | An auto prepend file to configure the enviroment | |||
| Class | The main class | |||
| Doc. | README file | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Data | Invalid PHP file to fail lint test |
| |
Data | A sample malicious PHP file |
| |
Data | An enviroment based PHP reconisence script |
| |
Data | A sample script that runs longer than the time limit |
| |
Data | A trusted PHP script |
| |
Data | A sample valid PHP file |
| Download all files: php-sandbox.tar.gz php-sandbox.zip |