In the technological world, to be able to carry out the various programs, applications and even operating systems, each of them is created with programming code.
In the market there is a variety of operating systems that you can use depending on the activities that you are going to use them for, for example there are business ones ideal for companies, industrial ones and those for personal use.
These can be open source and closed source; the open source code its source code can be seen by any user, that is, anyone can access it, on the other hand you cannot view the closed source code, even if you have previously purchased its license or permission.
The most common operating systems used by users are Microsoft Windows, GNU/Linux, OSX, Chrome OS, Unix, Free BSD, Solus Os, Mac, Linux Lite, Linux Mint, Ubuntu, and Ubuntu.
PHP features?
PHP is an open source scripting programming language that was created in 1994 by Rasmus Lerdorf. PHP comes from the acronym in English for Hypertext Pre-Processor, which in Spanish means hypertext pre-processor. Note that you can install Apache2 – php – Mysql and Phpmyadmin on Ubuntu.
It has HTML programming that is compatible with most databases and is also flexible because you can easily learn it.
Many prefer this PHP language because it is compatible with the best known databases such as ODBC; Oracle, MySQL, Informix and mSQL:
PHP contains three main components: a web browser, a server, and a parser. The server that uses PHP has the PHP programming language, in addition the browser provides you with exposes the stored web pages.
You can create your command lines without the need for a server or browser, since you would only need to use your analyzer in PHP.
Also with PHP you can make numerous desktop applications feasible on any existing platform. The advantage of including PHP on a Linux server is that it is much faster because it takes up less memory space.
PHP is the language most used by programmers and therefore its files are executed on the different web servers available on the internet. These files are customized as web pages that have codes so that you can run them online later.
How can you run a PHP file on Ubuntu Linux from console?
If you want to run your file in the PHP language from Ubuntu Linux then I will show you how to do it step by step, but you can also learn in more detail what is a PHP file and how to run them?
Step 1
If you do not have PHP installed on your computer, specifically in the software distribution repository, “download it” in Synaptic Package Manager or from the internet on its official site download its source code.
Step 2
Go to the main menu “Applications” click and you will see the tab with the name of Utilities or Accessories; below you will see the tab with the terminal name there “open it”.
Step 3
Once opened, write “cd” so that in this way you can change the directory of the PHP file, you can change it to the exact name.
Step 4
“Write” the following command “php5 file_name.php” in script, that way you can change your script to the correct name. To exit the terminal tab “write” the command Exit or Exit and now if you can run your PHP files in Ubuntu.