Run PHP Code
This script gives you the ability to quickly test snippets of PHP code locally. A local apache server is required.
- Create a folder called php or similar in your www folder.
- Extract the Run PHP Code files into it.
- Bookmark the URL for easy access.
- Bonus points for cloning the repository instead and pulling once in a while.
- If you get a blank screen you are probably not accessing Run PHP Code from 127.0.0.1. This is a security feature. Add your IP address to line 13 of index.php.
This application is meant to be run locally and should not be made publicly accessible.
Features
- Ace code editor
- Import gists from GitHub
- Import pastes from PasteBin and Pastie
- Run code in the same window or a separate window
Tips
- Pressing Ctrl-Enter will run your code.
- Ace supports multiple cursors, just hold ctrl and click where you want your cursors.
- This app comes with Font Awesome, so you can use the icons in your code. Simply include the css file:
<link rel="stylesheet" href="css/font-awesome.min.css">
Run PHP Code utilizes the following projects:
Ace
Copyright (c) 2010, Ajax.org B.V.
Licensed under the BSD License
Font Awesome
Font Awesome by Dave Gandy
Code Licensed under the MIT License
Fonts Licensed under the SIL OFL 1.1 License
Knockout
Copyright (c) Steven Sanderson, the Knockout.js team, and other contributors
Licensed under the MIT License
jQuery
Copyright 2014 jQuery Foundation and other contributors
Licensed under the MIT License