Using Winbinder With Scriptol and PHP

How to design easily user interfaces for graphical PHP programs.

What is Winbinder

Winbinder is an extension to PHP for building native Windows graphical user interfaces.
It is at alpha stage but is fully workable.

Installing the Winbinder PHP extension

Once you have downloaded and unzipped the Winbinder package, you have to update the PHP installation to complete it.
The process described in the README file in the archive doesn't work.
I have followed these steps to let it work:
- Copy the file php_winbinder.dll from

c:\winbinder\binaries\php51\ext 

to the extension directory of PHP, for me it is:

 c:\php5\ext

- Update php.ini that is stored inside the Windows directory. Verify the value of "extension_dir", for the location of extensions. For me, this is:

extension_dir=c:\php5\ext

- Add the Winbinder extension to the list of active extensions (active extensions don't have a semi-column as prefix):

 ext=php_winbinder.dll

Nothing more is required.

Running Winbinder scripts with PHP

Some examples are stored in the winbinder\phpcode\examples directory.
Move to this directory, list the content with the Windows's dir command, and type:

php xxxxx.phpw

Pick a name in the list of files to replace xxxxx...

Making a Scriptol Winbinder program

This works exactly as for PHP direct scripts. But you have to include a scriptol header that defines in scriptol the function you want to use.
I have translate the Hello demo from examples in the archive to Scriptol. For this to work I have had to write a small header file that is included into the archive, and named wingui.sol

To run the demo, extract the wingui archive, this will create the wingui directory. Enter the directory and type:

solp hello

This window should appear:


If you want to use Winbinder with Scriptol, and if you encounter problems, please go to the new forum and post questions...
Have fun!!!

Resources and informations