Davor's PHP Constructor - User Documentation

Working With PHP Projects

Any serious application development which involves maintenance of bigger number of separated programfiles (scripts or HTML pages) requires some kind of grouping and organization for simpler access and easier handling. Davor's PHP Constructor makes such things possible by allowing creation of projects.

A "Project" is a special file which holds information on all assigned files, their properties and all additional information such as running URL, FTP connection parameters etc. Beside project's physical file name, you can also assign it descriptive name.

Each project can be assigned unlimited number of files. Not only editable files can be added to projects - you can add also files that are part of your complete web site project like images; these files can not be edited inside IDE, but can be uploaded (deployed) to your FTP site using FTPclient, so you get all project information in one place - displayed in Project Manager or Project Files Window.

An IDE allows you to load unlimited number of projects at the same time, but only one project can be active at a time. You can change active project using combo box in Main Window or Project Manager. Many IDE commands and buttons such as "Files in Project" will respond depending on currently active project.

Creating Projects

To create a new project, use "File/New Project" command or buttons on main window or Project Manager toolbars. You will be asked to enter following information about a new project (which can all be changed later through Project Properties Dialogue): You can change any of project properties After you create a project, you can save it under desired physical file name.
You can add any file type to the project (normaly only textual files can be edited inside IDE) to keep control and easily upload to your web site. Use "File/Add File to Project" or appropriate toolbar buttons in main window to add files to your project. You can also drag and drop files to project node in Project Manager. Each time you add or remove file from/to the project, or change it's properties, it becomes "changed" and needs to be saved. You will be prompted to save any changed but not saved project files when exiting IDE.

Previewing Single Files

Press Ctrl+F9 to preview single file while editing it. IDE will attempt to save changes before preview.
There are two ways of previewing single files (see Setting System Options for instructions on how to select preview method):

Syntax Check

You can check syntax of edited PHP script "on the fly" if you have properly specified location and name of your php interpreter .exe file in System Options. Simply press Ctrl+F5 or select "Run/Check Syntax" from main menu or "Script/Check Syntax" from editor's popup-menu.

A message window appears at the bottom of Code Editor with syntax checking results.

Script Interpretation

Same conditions must be satisfied to interpret edited script. You can press F5 key or select appropriate menu commands to force IDE to call PHP interpreter on edited script and display results in separate window. That window has two pages; one displays result of script interpretation, pure generated HTML;the second one shows visual layout of generated HTML as it would appear in Web Browser.

This operation is useful for quick debugging of script HTML generation and direct insight into execution results without actually invoking previewer or running complete project.

You don't need to close interpretation result window if you need to keep results for further comparisons. Number of active interpretation result windows is not limited.

Running Projects

If you set project's run URL, it can be started through "Run/Run Project" main menu command or pressing F9 key. Defined previewer will be started with project's URL showing the first page of your project, regardless of which script you were currently editing.

Only active project can be "run".

Debugging

Debugger is currently in development phase.