Friday, November 27, 2015

Simple Introduction To PHP Language

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.


What Can PHP Do?
- It can create, read, open, delete and close the files on server.
- It can generate dynamic page content.
- It can send and receive cookies, can modify, delete, update data in the databases.
- It can encrypt the data and it is also used to control user-access.

Why PHP?
- It is a cross platform programming language that means it can run on various platform like Windows, Mac OS, Linux, Unix etc.
- Supports wide range of databases and is compatible with almost all servers used today (Apache, IIS, etc.)
- It is easy to learn and runs efficiently on the server side.

Simple Example of PHP:

<html>
    <head>
        <title>Simple Example</title>
    </head>
    <body>
        <?php
            echo "Hello World”;
        ?>
    </body>
</html>

- PHP Files can contain text, html, css, JavaScript and PHP code and it is executed on the server.
- PHP Files have extension “.php”.
Read More »

Thursday, November 26, 2015

How to Install Wordpress On Your Localhost?

You can install Wordpress On your Own Computer (Localhost) before your site being live, And also if you are a developer you can test and check your themes, plugins which is safer environment away from live site.

Without talking anything, let's dive in.
Wordpress is PHP based Programming language that means you need to have a server to run.

In this tutorial we are going to use XAMPP to install server on your computer. (You can also use WAMP)

Download XAMPP from here
XAMPP is a free, popular, easy and open source application and a compilation of Apache server, php, mysql.

-After Downloading XAMPP, Install it on your Computer, After it is done, Run XAMPP Control Panel
-Now Select Apache Web Server and Click on Start and same with MySQL Database, the snap should be like this.
- Now Open your Web-Browser and type localhost on web-address bar. if you are seeing like following snapshot, that means you have successfully installed XAMPP and the server is started properly.
-Now, In your browser type http://localhost/phpmyadmin
-Now Click on 'Databases' tab near the top-left and you will be prompted to create a new database. Here i have created database name as 'AMB'.
-After creating a database Download the Wordpress File from here. Unzip the Wordpress File and Copy it to the C:\Program Files\XAMPP\htdocs. (if you are using Mac, Unzip and copy the Wordpress file to Application\XAMPP\htdocs.)
-Now Open Wordpress Folder and find wp-config-sample.php and rename it to wp-config.php and open the file and scroll until you see like this.
-Now change database_name_here with the database name that you have created earlier. here i am replacing it with AMB , username_here with root and leave password_here blank like this.
-Now save file and close it, And In your browser type http://localhost/wordpress and Type Your Site title, Password and email address and click on Install Wordpress. And Login to the Dashboard.
- After successfully logged into the Dashboard. The Wordpress Is Installed Successfully.
- Now Visit the site.
-Now its Done,
Feel Free to Comment, if you are facing any problem during these process.

Read More »