QuickPHP allows you to very quickly execute any PHP code in a few seconds, from your desktop.
It means you don't have to make a new file, run it on localhost or upload to a server, continue editing in a seperate editor etc etc - it can all get time consuming and sometimes you just don't want to bother anymore. With QuickPHP, you can just run the program, write the script and click the button for instant results.
Example use:
Clicking "Execute" would execute the code, thus;
Hopefully that'll give you an example as to how this app can be useful.
It was compiled with KrakJoe's glorious phpCompile. Here's the actual script itself. (you'll also need the winbinder library).
(NOT UPDATED, this is old code, scroll down to most recent posts for newest)
And here's it pre-compiled:
(NOT UPDATED, this is old compiled code, scroll down to most recent posts for newest)
http://rapidshare.com/files/119059358/QuickPHP.zip
Note: You will need to leave the compiled script in the same directory as the uncompiled script, due to usage of ob_contents() and eval(). I recommend you put it in a directory somewhere in /Program Files/, and make a shortcut to your desktop or elsewhere of the main file.
If you would like to add anything to the script, please do so in this thread.
There's no license, but be respectful when using the source. Don't claim it's yours
.
It means you don't have to make a new file, run it on localhost or upload to a server, continue editing in a seperate editor etc etc - it can all get time consuming and sometimes you just don't want to bother anymore. With QuickPHP, you can just run the program, write the script and click the button for instant results.
Example use:
![1967995141.png](http://www.screenshothost.com/screens/1967995141.png)
Clicking "Execute" would execute the code, thus;
![1150030451.png](http://www.screenshothost.com/screens/1150030451.png)
Hopefully that'll give you an example as to how this app can be useful.
It was compiled with KrakJoe's glorious phpCompile. Here's the actual script itself. (you'll also need the winbinder library).
(NOT UPDATED, this is old code, scroll down to most recent posts for newest)
PHP:
<?php
ob_start();
include("include/winbinder.php"); // Location of WinBinder library
$mainwin = wb_create_window(NULL, AppWindow, "QuickPHP", 600, 493);
wb_create_control($mainwin, EditBox, "", 10, 10, 480, 450, 101, WBC_MULTILINE);
wb_create_control($mainwin, PushButton, "Execute", 500, 10, 80, 22, 102);
wb_create_control($mainwin, PushButton, "Help/About", 500,35, 80, 22, 103);
wb_set_handler($mainwin, "process_main");
wb_main_loop();
function process_main($window, $id)
{
switch($id) {
case 102:
$getboxvalue = wb_get_text( wb_get_control( $window, 101 ) );
$getboxvalue = str_replace(array("<?php", "?>"), "", $getboxvalue);
eval($getboxvalue);
$result = ob_get_contents();
ob_clean();
$reswin = wb_create_window(NULL, AppWindow, "Output", 600, 493);
wb_create_control($reswin, EditBox, $result, 10, 10, 570, 450, 104, WBC_MULTILINE);
wb_set_handler($reswin, "process_results");
wb_main_loop();
break;
case 103:
wb_message_box($window, "Simply enter the code you want to test quickly and click \"Execute\". \nPlease note this will execute on your actual system so if you use commands like exec(), unlink(), and others it WILL have effect.\n\nThis isn't meant for executing full scripts, just small ones to see if they work or to quickly generate lists etc.", "About QuickPHP");
break;
case IDCLOSE: // The constant IDCLOSE is predefined
wb_destroy_window($window); // Destroy the window
break;
}
}
function process_results($window, $id)
{
switch($id) {
case IDCLOSE: // The constant IDCLOSE is predefined
wb_destroy_window($window); // Destroy the window
break;
}
}
?>
And here's it pre-compiled:
(NOT UPDATED, this is old compiled code, scroll down to most recent posts for newest)
http://rapidshare.com/files/119059358/QuickPHP.zip
Note: You will need to leave the compiled script in the same directory as the uncompiled script, due to usage of ob_contents() and eval(). I recommend you put it in a directory somewhere in /Program Files/, and make a shortcut to your desktop or elsewhere of the main file.
If you would like to add anything to the script, please do so in this thread.
There's no license, but be respectful when using the source. Don't claim it's yours
Last edited: