You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Adams c205640cb2 Update knockout js 2 years ago
css Add clickable a display block 5 years ago
fonts Rename fonts directory because FontAwesome decided to 5 years ago
img Update screenshot 5 years ago
js Update knockout js 2 years ago
LICENSE Initial Commit 7 years ago
README.md Update README.md 4 years ago
favicon.ico Change the theme back to dark, new buttons, add favicon, style xdebug messages 6 years ago
index.php Update knockout js 2 years ago
php_search_index.json Update PHP search index 2 years ago
proxy.php Set User-Agent to fix gist imports 6 years ago

README.md

Run PHP Code

Download 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.

screenshot

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 © 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 © 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