Skip to main content

Posts

Showing posts with the label Install Xampp in windows

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: ...

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...

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...