PHP

Create Form with PHP

The forms are not part of PHP, but the standard Internet language, HTML. Let’s devote some lines in this chapter to HTML, to enter later to treat them with PHP.
Everything begins with the tag form <FORM ACTION=”lo_que_sea.php” METHOD=”post/get”>. With. With ACTION indicate that the script will process the information we collect on the form, while [...]

Sessions in PHP language

Usually a website consists of a series of pages among which there was any connection. A clear example is a page where you should be able to access them because according to the category of user will enable us to access some or other sections. In these applications will be necessary to go checking permits [...]

Connection with MySQL - PHP

Once we have explained a little over all operations possible and logical that we can do with a database in the SQL language, it’s time to combine it with the power of PHP and we will use the MySQL program.
MySQL is one of the managers more databases used in environments which is used as PHP [...]

SQL and PHP - example

In this chapter we’ll explain to the SQL language for what we use much later in connection with PHP MySQL.
Creating and modifying tables in SQL
MySQL is organized from tables and charts containing these fields. Each field is capable of containing a data type. The types of data that can be created in the SQL language [...]

Change, creating and erasing directories - PHP

In the development and administration of websites is quite usual to have to access files from the server to manipulate them. That is why in this chapter we will describe the roles created in PHP to perform such operations.
Change, creating and erasing directories
chdir (ruta_al_directorio); It allows us to change the current directory to the route [...]