Name | Web Site | Description |
BCMath | http://php.net/bc | Binary calculator handling numbers of any size and precision represented as strings. |
| | Example: |
| | |
Calendar | http://php.net/calendar | Set of functions simplifying conversion between different calendar formats. Based on Julian Day Count. |
| | Example: |
| | |
Ctype | http://php.net/ctype | Functions that check whether a character or a string belongs to a certain character class, depending on the current local configuration |
| | Example: |
| |
C_TEXT($myString)
$myString:=",.;/"
$ok:=PHP Execute("";"ctype_punct";$isPunct;$myString) |
Date and Time | http://php.net/datetime | Recovery of the date and time from the server where the PHP script is executed |
| | Example:
C_TIME($SunriseTime)
$ok:=PHP Execute("";"date_sunrise";$SunriseTime;0;1;38,41;-9;90;1) |
DOM (Document Object Model) | http://php.net/dom | Use of XML documents via the DOM API in PHP 5 |
Exif | http://php.net/exif | Work with image metadata. |
Fileinfo(*) | http://php.net/fileinfo | Detection of type of contents and encoding of a file. |
Filter | http://php.net/filter | Validate and filter data from a non-secure source, like user entries. |
| | Example: |
| | |
FTP (File Transfert Protocol) | http://php.net/ftp | Detailed access to a FTP server |
Hash | http://php.net/hash | Message Digest engine. Allows direct or incremental processing of arbitrary length messages using a variety of hashing algorithms |
| | Example: |
| | |
GD (Graphics Draw) Library | http://php.net/gd | Working with images |
Iconv | http://php.net/iconv | Conversion of files between various character sets |
JSON (JavaScript Object Notation) | http://php.net/json | Implementation of JSON data exchange format |
LDAP | http://php.net/ldap | LDAP is an access protocol to "folder servers" that store information in the form of a tree diagram |
LibXML | http://php.net/libxml | Library of XML functions and constants |
Multibyte String | http://php.net/mbstring | Set of functions for working with strings that can be used to handle multi-byte character encodings or to convert character strings. |
OpenSSL | http://php.net/openssl | Use of OpenSSL functions to generate and verify signatures, to seal (encode) and open (decode) data. |
PCRE (Perl Compatible Regular Expressions) | http://php.net/pcre | Set of functions that implement rational expressions using the same syntax and semantics Perl 5 |
| | Example: |
| |
C_TEXT($myString)
$myString:="foo o bar"
PHP Execute("";"preg_replace";$myString;"/\\s\\s+/";" ";$myString)
ALERT($myString)
|
PDO (PHP Data Objects) | http://php.net/pdo | Interface for accessing a database. Requires a database-specific PDO driver. |
PDO_SQLITE | http://php.net/pdo_sqlite | Driver that implements the PHP Data Objects (PDO) interface to allow PHP access to SQLite 3 databases. |
Reflection | http://php.net/reflection | Complete reflection API that lets you reverse-engineer classes, interfaces, functions and methods as well as extensions |
Phar (PHP Archive) | http://php.net/phar | Allows a complete PHP application to be included in a unique file named "phar" (PHP Archive) to facilitate its installation and configuration |
Session | http://php.net/session | Support of PHP sessions |
| | Example: |
| | Sessions are used in Web applications to preserve the context between each request. When you call PHP Execute in 4D, the PHP script can start a session and store anything that is useful to be kept as context in the associated $_SESSION array. If a PHP script uses sessions, you must obtain the session ID returned by PHP using the PHP GET FULL RESPONSE command and specify it before each call to PHP Execute using the SET ENVIRONMENT VARIABLE command. |
| |
If(<>PHP_Session#"")
SET ENVIRONMENT VARIABLE("HTTP_COOKIE";<>PHP_Session)
End if
If(PHP Execute($1))
PHP GET FULL RESPONSE($0;$errorInfos;$errorValues;$headerFields;$headerValues)
$idx:=Find in array($headerFields;"Set-Cookie")
If($idx>0)
<>PHP_Session:=$headerValues{$idx}
End if
End if |
SimpleXML | http://php.net/simpleXML | Very simple and easy-to-use tools to be used to convert XML to an object that can be processed with its properties and array iterators |
Sockets | http://php.net/sockets | Implementation of a low-level interface to the socket communication functions based on BSD sockets and providing the possibility to act as both a socket server as well as a client. |
SPL (Standard PHP Library) | http://php.net/spl | Collection of interfaces and classes that are meant to solve standard problems. |
SQLite | http://php.net/sqlite | Extension for the SQLite database engine. This engine is embeddable. |
SQLite3 | http://php.net/sqlite3 | Support for SQLite version 3 databases |
Tokenizer | http://php.net/tokenizer | Functions that let you write your own PHP analysis tools or modification tools without having to deal with the language specification at the lexical level |
XML (eXtensible Markup Language) | http://php.net/xml | Parsing of XML documents |
XMLreader | http://php.net/xmlreader | XML Pull parser |
XMLwriter | http://php.net/xmlwriter | Generation of XML format streams or files |
Zlib | http://php.net/zlib | Reading and writing of gzip (.gz) compressed files |
| | Example: |
| | |
Zip | http://php.net/zip | Reading and writing of ZIP compressed archives and the files inside them |
(*) In the current version of 4D, these modules are not available under Windows