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

PHP: It can do it!

Over several posts, I am spending some time on major new features of 4D v12 (released last June). Today, I’ll focus on a new major major-new-feature: The PHP Execute command, which allows the execution of PHP code.


Well, having written “PHP Execute allows the execution of PHP code,” I realize that the name clearly stands for the function. 4D should give enigmatic names to the commands, so I can avoid stating the obvious. For example, “The Execute a script of the kind Hyper Text Preprocessor allows executing PHP code”. Now, we feel like we’re really learning something.


Objects and Properties

While a program is running, we often need to access to some types of object properties. For example, we can dynamically move and resize an object, change it to bold or italic, or modify the title of a button...


The “Object properties” language theme has been reworked a lot in 4D v12: Commands have been renamed, and new commands and functionalities have been added.

The Text Looks Great!

Every major new version of 4D brings with it some new features. Whether major or minor, what is immediately interesting for a developer does not necessarily have the same importance to another. And vice versa, when you think about it.


I readily admit that this is stating the obvious. On the other hand, this is my place to write such things, even when they’re obvious.


Find what you're looking for

A powerful, application-wide search and replace tool lets you find any item in the development environment. Your search can be as broad (any object, text, “contains” a string, etc.) or as restrictive (search for a specific constant using the full name) as you want, with results easy to view, organize and manipulate.


4D v12's find dialog is remarkably intuitive and easy to use. Use its menus to create a natural search sentence, like "Find variables whose name contains airport."

Additional search options

4D v12 provides additional options to help you fine-tune your searches. 


Discover SVG Goodies for 4D v12

SVG Goodies is a 4D v12 example application that illustrates the power of using SVG inside 4D. You can run the app to see how the methods work, then use the methods in your own projects simply by dropping SVG Goodies in the Components folder near your structure (you can also copy/paste the methods into your own code). It’s totally open and free!


SVG Goodies contains useful utilities that will let you: