Skip to main content

Posts

Showing posts with the label Feature of php

What is Phalcon?

What is Phalcon?? What is Phalcon Phalcon is developed by group of developers where  Andres Gutierrez  was their team head. Phalcon is an open-source framework of PHP programming language. It is based on Module View Controller (MVC) pattern. Phalcon is the first framework that implements ORM in C-programming language. Phalcon Application Structure Phalcon key feature is that it is a loosely coupled framework. Phalcon allows user to build project with a directory structure that is convenient for specific application. It follows MVC and has "Standard Structure". Phalcon has the following directory structure for a project: //structure layout Application:  It contains the config, controllers and views resource folder. This directory defines all the functionality of an application. It consists of vital scripts and files which runs on the server. Configuration:  It defines the configuration properties of the application. It consists of four files: ...

PHP Vs Python In 2019

PHP and Python are the popular high-level programming languages which have a strong open source background and also provide comprehensive design documentation. The major difference between PHP and Python is that PHP is broadly used for web development whereas Python is a general-purpose full-stack programming language. PHP is a server-side scripting language, in contrast, Python is an object-oriented scripting language. Content: PHP Vs Python Comparison Chart Definition Key Differences Conclusion Comparison Chart BASIS FOR COMPARISON PHP PYTHON Popularity and availability. More prevalent and exist in many systems. Less popular as compared to PHP. Readability PHP is not much maintainable as compared to python. The maintainability and change acquirement of Python is very good. Security Offers fewer security features. More secure. Functional features Functional programming is not provided. Functional programming techniques are possible. Definition of PHP ...

How to Install Xampp in windows

Before learning PHP you need to know about the packages through which you can run them. XAMPP is a package which used to setup the PHP environment by providing the required constellations and Softwares. This package includes Apache, MySQL, PHP, PHPMyAdmin, FileZilla FTP Server, Perl and more. There are a lot of packages like XAMPP known as WAMP, LAMP, MAMP. The packages names are based on the platform. For example, SAMPs for Solaris system and FAMPs for FreeBSD platform. It is very simple and easy to install XAMPP in out local machine. In this tutorial, we are going to see the XAMPP installation steps with screenshots. Step 1:  Go to  Apache Friends  and download XAMPP installer. Step 2:  Run the installer file to get into the installation wizard. Step 3:  During the wizard-like installation process, specify the language, the root directory path to locate the  htdocs  folder and select required components. Step 4: ...

PHP vs Java in 2018

A Full Comparison of PHP and Java Looking at what Java and PHP provide may open the door to the right possibility for your website. Both of these choices provide scalable and flexible options for the applications you need. Which one is right for you? Before you choose the right one for you, it’s necessary to look at the benefits of both. Benefits of PHP PHP is another top programming language used by web developers. This language provides a number of benefits including: Easy to Learn Open Source Efficient Coding Language Plenty of Support Just as Java is very easy to learn, so is PHP. It becomes even easier to learn if you’re familiar with syntax or have experience with Pearl and C. Along with being easy to learn PHP is an open source coding language, which means you gain access to a huge community for support. It’s also provided free of cost because of the open source feature. If you write the code properly, PHP becomes one of the most efficient web langua...

Difference Between MYSQL & MYSQLI

MySQL and MySQLi are PHP database extensions implemented by using PHP extension framework. PHP database extensions are used to write PHP code for accessing the database. They expose database API to provide interfaces to use database functions. MySQL extension is deprecated and will not be available in future PHP versions. It is recommended to use the MySQLi extension with PHP 5.5 and above. MySQL & MySQLi Difference There are too many differences between these PHP database extensions. These differences are based on some factors like performance, library functions, features, benefits, and others. MySQL MySQLi MySQL extension added in PHP version 2.0. and deprecated as of PHP 5.5.0. MySQLi extension added in PHP 5.5 and will work on MySQL 4.1.3 or above. Does not support prepared statements. MySQLi supports prepared statements. MySQL provides the procedural interface. MySQLi provides both procedural and object-oriented interface. MySQL extension does not support s...

Foreach Loop in PHP

In PHP,  foreach  statement is used to iterate over a collection of data, like  PHP arrays . As per the name of this construct, it will keep on continue with the loop to traverse given input array for each of its element, without any condition. We have slightly touched about how this is working in PHP while seeing about  PHP loops . In this article, let us see about  foreach  statement with more details. Unlike other PHP loop statements,  while ,  do..while  and  for , this PHP loop statement  foreach  contains no counters, conditions and no need of increments or decrements, explicitly. Rather, it will iterate with each element and will be useful, where all the elements of the array to be traversed unconditionally. foreach  Usage in PHP Script We can use  foreach  statement in a PHP program with two various syntaxes differed based on the iteration behavior for getting array elements in the following t...

PHP opening Tags

PHP delimiters are nothing but the open close tags to enclose PHP script. PHP code can be parsed if and only if it is enclosed with these delimiters. There are various set of delimiters to recognize PHP code. These are as listed below. <?php … ?>  – It is most probably used delimiters and also preferable, since, PHP code enclosed with in <?php .. ?> could be recognized with other PHP servers independent of the tag related configuration directives. <script language=”php”></script>  – This will also work anywhere, like <?php … ?>. <? … ?>  – This is called as PHP short tags which will work based on the value set with  short_open_tag  directive of PHP configuration file. <?=..;?>  – This is also short form of denoting PHP code, but used as an alternative representation of PHP print statement. <% … %>  or  <%=;%>    – This is the delimiters for writing Active Server Pages(A...

Now About PHP Info

Have you ever heard about phpinfo(). Yes, this function is used to know about configuration details of PHP installed in our machine. Such detailed information returned by this phpinfo() includes platform information, PHP and server environment, HTTP header information, PHP core details like version and directives status, License information and etc. phpinfo() function has an optional argument. If this function is called with no argument, then will display all information. We can check it by executing the following code. <? php phpinfo (); ?> We can also request specific details to be displayed to the browser by passing available constants to this function. Following list shows such available options. INFO_GENERAL – This will return information about the platform, compiler, architecture, API and etc. INFO_CREDITS – This option provides a hyperlink which shows details about authors, documentation, QA and infrastructure team. INFO_CONFIGURATION – Disp...

Unique Feature of PHP

Before Learning PHP we must know that PHP is a popular language and contains many features. Some of those features are common as that are provided by many programming languages like C, C++, Perl and more. Also, PHP contains unique features of its own. In this article, we are going to list some of the unique features of PHP. S.No Features 1.  Loosely Typed Language  – PHP supports variable usage without declaring its data type. It will be taken at the time of the execution based on the type of data it has on its value. 2.  Cross Platform Compatibility –  It   is used to create the desktop application by using advanced PHP features. 3.  variable variables –  PHP allows changing the variable name dynamically by using  variable variables . 4.  Real-Time Access Monitoring –  PHP provides access logging by creating the summary of recent accesses for the user. 5.  Magic Method –  PHP has built in methods start...