AllInWorld99 provides a reference manual covering many aspects of web programming, including technologies such as HTML, XHTML, CSS, XML, JavaScript, PHP, ASP, SQL,FLASH, jQuery, java, for loop, switch case, if, if else, for...of,, for...each,while loop, blogger tips, blogger meta tag generator, blogger tricks, blogger pagination, client side script, html code editor, javascript editor with instant output, css editor, online html editor, materialize css tutorial, materialize css dropdown list,break, continue statement, label,array, json, get day and month dropdown list using c# code, CSS button,protect cd or pendrive from virus, cordova, android example, html and css to make android app, html code play,telerik show hide column, Transparent image convertor, copy to clipboard using javascript without using any swf file, simple animation using css, SQL etc. AllInWorld99 presents thousands of code examples (accompanied with source code) which can be copied/downloaded independantly. By using the online editor provided,readers can edit the examples and execute the code experimentally.

Create first php program using xampp:-
     Download xampp(freeware) software from this link Download XAMPP, xampp software having Apache and MySQL.

Usage of XAMPP software:-
  Xampp is mainly design for designer and programmers to test their work on their own systems without access to the internet. Default many security features are disabled. Also xampp is help to create and manipulate database in MySQL and SQLite. Once the Xampp is installed on the local system we can use like server. Programs are should be stored in the "xampp\htdocs" location.

Steps of Installing Xampp software:-
1.Choose the language you want and press ok.

Choose the language xampp

2. Select the components, what you want to install and click next.

Install component in xampp

3. Few minutes wait for the installation progress, in this time all files are stored in the installation directory, default directory is (c:/xampp)

Installation progress in xampp application

4. After install the xampp software you can see the control panel like below screen,

xampp control panel

5. After installed, must restart your system because then only all the server services are started properly, then after only we can start the apache server and execute the programs.

xampp start apache and mysql server

6. After start the Apache server and MySQL you can access your server home DocumentRoot, typing "http://localhost" in the address bar. If you type this address to your browser then the "C:\xampp\htdocs\index.php" file will execute.

xampp localhost setting menu

Steps to create a php program and execute:-

1. First we need a editor for create the program like notepad, notepad++ or other php editors. My best choice is "php designer" or "notepad++".

notepad++ php editor

2.Write a php program and save it to "c:/xampp/htdoc/" directory you can create any directory or files inside that directory, in that below image I have create a name "example" directory and inside that directory create a php file "example.php"

php program saved location

3. You can execute this file in your browser like "http://localhost/example/example.php" this path will access the file local path is "c:/xampp/htdoc/example/example.php".

                          run php program output

Example Program:-
echo "<font color='red'>The Answer is : ".$Answer."</font>";


localhost path in xampp server


Post a Comment

Total Pageviews