Workbench for the Creation and Administration of Web-Sites built with PHP, HTML and MySQL-Databases
Rules for php-files
Version 1.22  
of April 04, 2010 Change-History

phpGUI is a tool for developers who build web-sites with PHP, HTML and MySQL. But also those who don't know anything about PHP, but create statical 'pure' HTML-pages, will benefit from the features of phpGUI. phpGUI is not a replacement for HTML- or PHP-skills. Also it is not a design-tool. Instead, it is a replacement of a bunch of commandlines and several single tools by a straightforward and user-friendly workbench, which concentrates all work at a single place.


In order to create a web-site you need source-files (HTML, PHP and others) as well as graphic-files (images such as gif, jpg, png etc.). Each filetype has its own edit-program:
  • Edit HTML- and PHP-files: ASCII-Editor
  • Display HTML-files: Web-Browser
  • Edit / Display image-files: PMView, Embellish etc.
These files must reside in a hierarchical directory-structure, e.g. all HTML- and PHP-files in a project-directory like 'c:\website_xy\' and the image-files in a subdirectory like 'images\'.

The project-directory must be defined once in the phpGUI-Settings-dialog, after that you have direct access to all files in that project (including the subdirectories). Each file may be opened by its associated edit-programm. At any time a file may be uploaded directly to the remote web-server (which must also be defined once in the phpGUI-Settings-dialog). The directory-structure on the remote site is maintained automatically, i.e. if neccessary phpGUI will create subdirs by itself.
Full screen display of program-frontend
How to use phpGUI

Special Rules to Obey with PHP-Files

If you have an existing web-project consisting of images, HTML-code and other ascii-files you should be able to start working on it with phpGUI right from the start. But if you have php-sources in your web-project, there are some rules which your existing php-files must follow (however, if you create new php-sources in phpGUI, of course these rules are fulfilled automatically):

PHP-sources consist of a 'main'-part (similar to the main()-function in C) and - optionally - several functions and/or classes. There is no rule in PHP if the main-part be first in the PHP-file or at the end or even dispearsed over the file (except for classes, which must be located in the php-source-file before they are referenced). But in phpGUI it is required, that any php-file be structered in this way:
  1. <?php
  2. (optional) classes
  3. main-part
  4. (optional) functions
  5. ?>

For a precise definition of the structure of a php-source-file
click here.

But this restriction should be easy to bear, because in phpGUI you won't look at the PHP-file in its entirety, but instead you operate on the file with each part (function or class) in its own edit-window and these parts shown in alphabetical order in the parts-list.

This way of 'breaking-up' the structure of a PHP-file makes it much easier to work with large PHP-programs.

Look & Feel:

Those who don't like the coloring of the controls in phpGUI my change them arbitrarily (more....).


  • an internet-connection
  • a remote server (webspace) with FTP-access
  • knowlede how to write PHP-/HTML-code


Before you download the program, please read and accept the following NoWarranty-Clause:
  • Usage of this program is totally at your own risk. Not the author nor the dirstributor of this program may be held responsible for any damages that may arise out of the usage of this program.
  • This program is shareware. There is currently no registration implemented, i.e. the program can be used without any functional limitations or restrictions in the version that is currently provided.
  • This program is currently in beta-state. That means that it conatins bugs and errors and there is the possibility of data loss. If you do not want to bear this risk then you must not use this program.


  • Download '' into a newly created directory, e.g. 'c:\phpGUI'
  • In that directory: enter 'unzip phpGUI'
  • enter install.
A re-boot is not required.

Install over an existing version:
  • Simply unzip the download-file '' into your existing directory.
  • If your current version is of before Dec.14, 2004 then you must migrate your old sites-definitions-file (sites.cnf) (because from ver.0.92 the login-data are stored in encrypted format). For migration there is a program called MigrSites available, which you must download here, unzip into your phpGUI-directory and execute there.

Download: (570 kb)
What you still need... (400 kb)
Vrobj.dll is a DLL which is used by many programs and most probably you already have it somewhere on your system (in the LIBPATH). If not or if the version that you have is older than 06-06-1995 then you must download it here and unzip it into (recommended) x:\os2\dll\. (387 kb) contains GBM, the 'Generalized Bitmap Modules'. Out of these you need 'gbm.dll', 'gbmhdr.exe' and 'gbmsize.exe'. (must be copied either into the phpGUI-program directory or in some directory on your PATH).

Write a message:

Your email-address:
Type of message: Error-Report Improvement Complaint
Ihre Nachricht:

More Features:

User-defined Code-Segments (snippets):

By the click of a mouse button you can insert into the currently open Edit-Window predefined code-segments in HTML- or MySQL-syntax. You can extend the choice of snippets with your own ones by simply editing a segment-file which is supplied with phpGUI.

Select Colours of your own Choice:

You can change the colors (background- and foreground-) of the main GUI-objects in the phpGUI-window. Proceed as follows:
  1. Open OS/2-Color-Palette
  2. To set the background-color: Drag a color (with right mouse button) into the area of concern.
  3. To set the foreground-color (text): hold <CTRL>-key pressed and proceed as above.

Site-Definition How to use phpGUI zworks-Startpage