其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
WinBinder--A native Windows binding for PHP

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

好久没关注新闻组了,最近新东西特多,又一个使用PHP开发WINDOWS应用程序的环境出来了,而且是100%的哦,牛人真多。

What is WinBinder?

WinBinder is a new development platform that uses PHP to build Windows programs in a straightforward and simple way. Even short scripts with a few dozen lines can build a useful program, thanks to the power and flexibility of PHP. WinBinder is easy to use and produces very fast and rewarding results with minimum effort.

How does it work?

The WinBinder technology benefits from the new CLI SAPI (Command Line Interface / Server Application Programming Interface) that was officially introduced in PHP 4.3.0 plus a custom DLL (a Windows library) as the key elements to build a flexible and powerful Windows development platform. A callback mechanism is created so the application script can easily process the events generated by the Windows controls. A simple RC parser allows Windows resource files to be used directly and avoids the need for a separate compilation step. It is also easy to include any existing PHP code library and even use preexistent template-based PHP code to create Windows applications that behave as their web counterparts. This arrangement is compliant to the PHP guidelines.




Simple examples

Here is the minimum code required for a Windows application:

<?php

// Code sample: A Windows application with only three PHP lines

include("../../php/inc/winbinder.php");                         // Include WinBinder library
wb_create_window(NULLPopupWindow"Hello world!"480320);  // Create application window
wb_main_loop();                                                 // Enter message loop

?>

The code above will produce a normal application window with a system menu, a minimize button and a close button like the one below.

This example was captured with the default XP theme.

更多资料请访问:http://winbinder.sourceforge.net/




相关文章

相关软件