PHP Exec Sandbox is a simple web application that allows you to test PHP code in a secure and controlled environment. It provides a web-based interface where you can enter PHP code, and it will execute the code and display the output.
Clone the Repository:
git clone https://github.com/Captainnnobody/php-exec-sandbox.git
cd php-exec-sandbox
chmod +x install_php_exec_sandbox.sh
./install_php_exec_sandbox.sh
Copy PHP File to Web Server Directory:
sudo cp phpexecsandbox.php /var/www/html/index.php
Delete Default index.html File:
sudo rm /var/www/html/index.html
Open your browser and go to http://localhost/ to access the PHP Exec Sandbox.
- Open the PHP Exec Sandbox in your web browser.
- Enter your PHP code in the provided textarea.
- Click the "Run Code" button to execute the code.
- View the output in the adjacent panel.