subscribe: Posts | Comments

Most of PHP

0 comments


Now that we’ve seen how simple it is to develop with PHP and see what we can
do things with him, the libraries that are available. Many of these libraries
are object oriented so their use will be similar to this example. This example
is used throughout the course to go further by introducing concepts of PHP in
particular, to present how to work with databases MySQL and PostgreSQL.

PHP in each new version supports new features so the best way to see that new
libraries are included during the compilation. If within the sources directory
of PHP run the command "configure – help" will give us information on all
possible options that PHP has to be compiled, and among this information, all
the modules you can add PHP whether we have the appropriate libraries. Within
the PHP manual you will also find a reference to all available functions. Note
that it is often necessary to compile PHP to include special support for a
specific functionality. For example, if you want to access from PHP to the
database manager MySQL, it is necessary that when we include You are compiling
PHP support. To do this you need to have MySQL libraries installed on your
system, usually in the package ‘dev’ MySQL, and run ". / Configure – with-mysql"
before compiling PHP. This will include in the PHP module generated the support.
The information we collect with the function call to "phpinfo ()" provides
information on the modules included. In Figure 3 we can see the information
about the MySQL and the GD module, which is used to create graphics on the fly.
"

This information is important to the client version of API. If this is not compatible with the server you want access, we can not access this server. In this case we have the 3.22 version that uses the protocol 10 to communicate with the MySQL server. If we had a version 3.20 of the client (MySQL is released under the GPL license) could not access the server that the client 3.22 and use the communication protocol version 9, which is incompatible with version 10.

Whenever we talk about PHP is the first thing is to present the large number of managers of databases available to them.
Adabas D
dbm
dBase
filePro
Hyperwave
Informix
InterBase
LDAP
Microsoft SQL Server
mSQL
MySQL
ODBC
Oracle
PostgreSQL
Solid
Sybase

But if this aspect is no less impressive support:
Accessing IMAP servers
Sending mail with SMTP
Access to FTP servers
Access to SNMP for network management and equipment
Dynamic generation of PDF documents and graphics
Analysis of XML documents
Correction ortografíai
Genración data in WDDX (Web Distributed Data Exchange)

And all this has been possible since PHP has been designed in a very modular and has been simple as libraries have been emerging, from using PHP. All this functionality is based on libraries for the most part have not been developed by the team of PHP. The people of PHP which has been implemented you have rope to gain access to the libraries.

Throughout the course we will be introducing the use of some of these libraries, but nothing stops the reader to begin learning. In the PHP manual has plenty of documentation on these functions, its use and possible results. This release we will conclude with a description of the new features of PHP4 version we use throughout the course.