warning: file_get_contents( [function.file-get-contents]: failed to open stream: HTTP request failed! in /var/www/ : eval()'d code on line 4.

Webkit integration

From its very early days, 4D has been committed to cross-platform equality. And with the growing use of the Web as a platform in and of itself, 4D’s Web Area has been a popular method of incorporating Web-based technologies such as HTML5, CSS and JavaScript directly into your applications.

Earlier implementations of Web Area were sometimes limited by each platform’s native browser engine, namely Safari on Mac OS X and Internet Explorer on Windows. The integration of the open source Webkit engine into the Web Area guarantees HTML compatibility across platforms.


PHP Integration

4D v12 lets you directly execute PHP 5.3 scripts within 4D applications, thanks to our FastCGI compiled interpreter.

(You may use other interpreters, providing they are compatible. See documentation for details.)


Go beyond Web scripting and add real functionality to your applications.


You get access to a wealth of utility libraries available via PHP, providing functions such as:

  •  ciphering and hashing (MD5)
  •  handling of HTML files
  •  image handling
  •  LDAP access
  •  COM access (for Microsoft Office documents)


SVG Area

Taking advantage of 4D's powerful integrated SVG capabilities, the SVG Area component brings a manipulable SVG field to your user interfaces.

The SVG Area field allows you to create vector graphics, whether hand-drawn or programmatically generated, connected to data in the host application. It supports shapes, colors and standard 4D fill patterns, and can also contain bitmap images in the form of links. The area's contents can be stored in a record or exported as an SVG file.


SVG Goodies

The SVG Goodies application offers several methods that take advantage of 4D's integrated SVG image capabilities.

These methods include image rotation, creating reflections, and more, and can be used in your own projects freely.


Download for Windows or Mac

Flash Your Charts

This example demonstrates 4D's ability to use external PHP libraries to add functionality to any application.

In this case, we use PHP and Flash to illustrate and animate charts based upon 4D data.


Download for Windows or Mac 


XML Integration

4D's support for XML has been updated and expanded in 4D v12.

Furthermore, data conversion mechanisms between 4D and XML have been strengthened, and 4D can both encode and decode XML.


New XML commands in 4D v12 include:

  • DOM Append XML child node
  • DOM Append XML element
  • DOM Get XML Document Ref
  • DOM Insert XML Element
  • DOM REMOVE XML ATTRIBUTE well as the parsing of date and time formats



4D v12 improves upon application localization capabilities.

XLIFF files, used to store localization information since 4D v11 SQL, can now be called upon to change an entire user interface on the fly. A single 4D command can instantly change the interface language.


The 4D SVG component is installed with 4D v12, so that all your solutions can take advantage of its advanced graphic capabilities.

The component provides commands to meet your most frequent graphical needs, giving you access to parameters that will let you create your own SVG graphics, or modify existing SVG files from other sources.


It includes an SVG Viewer that will let you view your SVG files both as an image and as the XML source code. A separate Syntax Palette lists all of the component's commands - logically grouped by theme - which can be dragged and dropped into your 4D methods, along with all of their parameters.


Unicode Support

This example demonstrates 4D's ability to display Unicode characters.

It also shows the conversion of characters when using the Uppercase and Lowercase functions, as well as 4D's capacity to convert from one standard to another (i.e. ISO-8859-1 to UTF16) via intermediary BLOBs.


Download for Windows or Mac


4D Pictures

This application shows off 4D's image processing capabilities.

Images can be displayed in various ways, as well as transformed. They can be imported, exported, and changed from one format to another (i.e. JPG to PNG).


Other possibilities are demonstrated as well.


Download for Windows or Mac