Wednesday, November 16, 2016

Student Registration System in PHP/MySQL with Admin Panel in Urdu/Hindi ...

Sunday, September 14, 2014

How to install PHP on your computer

If, on your computer, a web server is already in action and it has activated the capability to support php and mysql, you don't need any kind of extra installation since php is a free and a large number of host offer support for it. You write your php code, place in web directory and the web server will parse this code for you.
However, if your server denies the support for PHP, then we'll have to make :
  • Installation of web server.
  • Installation of PHP.
  • Installation of backend database, such as MySQL.
So, you will have to install all these necessary tools one by one but we have another solution that is nothing short of a shortcut. We can install all these components by installing only XAMPP. Yes XAMPP is a software package blending php,mysql and apache server for your programming practice to learn php online freely.
To download free XAMPP, first of all visit the website to get free download XAMPP. Also if you want a quick download just visit the concerned link to download free xampp software.
Having downloaded the XAMPP package, double click on the file to start xampp installation.
User Account Control (UAC) Warning
Another thing that may come in the way is UAC warning. This is not so problematic as it seems to be.
Although this message is a little alarming at first yet it is not a big deal. It simply refers not to install XAMPP in C:\Program Files as you are often used to of that. However the installer defaults to installing in C:\xampp.
 
The installer will ask you for a location to install XAMPP with a default of c:\xampp, but  you are free to have another location to install the package.           

The installer will ask you to configure a number of options. The default selections shown in Figure. If you like to keep a clean desktop, you might want to uncheck the Create a XAMPP desktop icon checkbox. If you want your Apache and MySQL servers running at all times and not start manually, you can check the Install Apache as service and Install MySQL as service checkboxes.
                        
On completion of installation, you’ll be asked to start the XAMPP Control Panel. Click No.

At this point, It is  recommend shutting down and restarting your computer.

Once the installation is complete and your system has restarted, you can run/open the XAMPP Control Panel. You’ll find it on the Start menu under All Programs > Apache Friends > XAMPP > XAMPP Control Panel. 



Now you are to Click the Start buttons next to Apache and MySql  in the Modules list so that we may launch the Apache andMySQL servers built into XAMPP. You will see a green Running status indicator next to each server in the list.
One more thing is that , you’ll probably receive a Windows Firewall alert for each server. This will happen when the servers usually try to start listening for browser requests from the outside world. 




Here click on Cancel button if you want to make sure that only you can access your development servers. Inspite of that you’ll be able to connect to the web server using a browser running on your computer. However, in some cases, it can be handy to access your server from another computer on your network that is why it is recommended to check the Private networks, such as my home or work network checkbox and then clicking on the button 'Allow access'.



Once you see that both the  servers are running , click the Admin… button next to Apache. Open/Run your web browser and type http://localhost/xampp/


If the above page appears, it means your web server is up and running. Notice that the web address/URL in your browser’s address bar starts with http://localhost/ 
It is to be noted that some browsers may hide the protocol, “http://”

What is localhost

"localhost" is such a special hostname that often refers to your own computer.
When you’re done working with the XAMPP Control Panel,clickon the Exit button to  shut it down.

Role of a Web Server and difference between static and dynamic websites.

While working with static website, you are to simply open your files i.e. html files into web browser like firefox etc. Web browser is credited with the capability of reading html formats of code. A web browser is unable to understand code written in PHP, however it has the instructions to direct these PHP scripts to a web server that in response return the web browser an HTML page. Before uploading your PHP files to a real web server on the internet, how can you view your PHP files result on your own computer. The solution is very clear, you'll need a temporary web server on your computer.

Have you ever build website with HTML,CSS and even JavaScript?. You'd have experienced the uploading of files of your website i.e. web pages to a certain location. It might be a web hosting service your have paid for. When you upload the files, another program called 'web server' is capable of finding these files and serve their copies as and when requested by a web browser like IE or firefox.

Commonly used web servers that you may have heard of are Apache HTTP Server
(Apache) and Internet Information Services (IIS). As you know that PHP is a server-side scripting language. We can best describe it as a plugin for your web server that enables it to serve more beyond sending same copies of the files that web browsers demand . 

Good thing about installation of PHP is that, your web server will be able to run php scripts that can get information from database and generate html pages prior to serving the web browser that demand them.
To enable PHP scripts retrieve information from a database there must be a database to go side by side with PHP. That’ s where we need MySQL . So far as  MySQL is concerned, its a relational database management system, or RDBMS.

Wednesday, September 10, 2014

What is PHP?

PHP stands for Hypertext Preprocessor. This may cause confusion among many people since the first word of the acronym is the acronym. Such kind of acronym is known as recursive acronym.
PHP is a server side scripting language. Do you know the term "server side scripting"?. No! Don't Worry. In fact there are two type of scripts or codes or programs while we talk about web pages. The two types of scripts are:-
  1. Server Side Script
  2. Client Side Script
In server side script the whole action takes place on the server while in client side script the whole action takes place on the client. Simple to say , in server side scripting language, the user sends the request (of a 
 webpage for example) to the server and in response the server sends an html page. The user is unable to view the real processing behind the page.
In client side scripting language , the user is nothing to do with the server, the user requests are processed at the user computer by the web browser being used by the user.
So far as PHP is concerned , it is a server side language, so it provides security. Nothing can be done if the back end server is not doing its part. On the other side, the scripting languages such as javascript is a client side language.
Web pages developed through server side scripting languages are also referred to as Dynamic web pages since the content is often changing on the pages. That is the reason, such scripts are suitable for websites concerning the business world. In short, e-commerce activities are best accomplished through dynamic web sites.  Dynamic Web sites are regarded as  flexible applications than normal web sites being created with simple HTML or javascript.
Other features of PHP include as it is an open source language that is compatible with all the major web servers like Apache as well as databases.