Fekky Reviant

starting with a doubt then ending with a choice …..

cara membuat GUI aplikasi dari PHP

lagi bersih2 hardisk(lebih dr 2TB -_-’) nemu tutorial bikinan ndiri pas jaman bahela, emang si bertaun2 yg lalu, cm kekna sayang klo di apus(soalna waktu itu ngutak-atik setengah mampus -.-’), jadi di taro aja dicini deh :p


dibawah ini harap ditaruh satu folder dengan file2 projectna :

prepare include folder bisa di download disini http://download
prepare php_winbinder.dll
prepare yourform pake winbinder :D

=======================

bikin kompiler project isina {save as .bcp} : 

----------------
mainfile namafileutama.php
embed namafoldertempattaruhfileutama
outfile namaoutput.exe
compress
extension tempatnaruhdll\php_winbinder.dll
---------------


tambain kode dibawah di fileutama.php
---------

// add these by your self, and make above by form editor

wb_set_handler($mainwin, "process_main"); 

wb_main_loop(); 

function process_main($window, $id)
{
    switch($id) { 
	    case IDC_PUSHBUTTON1002: 
            wb_message_box($window, "Button #$id was pressed."); 
            break; 

        case IDCLOSE:                         // The constant IDCLOSE is predefined 
            wb_destroy_window($window);       // Destroy the window
            break; 
     }
}
---------

include "include/winbinder.php";
tambain kode dibawah di tempat paling atas dari fileutama.php

----------------

biqin file compile.bat yang isina : 

---------------
..\..\bamcompile calculate.bcp
pause
--------------

cherio ;)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.