Sunteți pe pagina 1din 9

A Progress Report

on

Dynamic Websites Using PHP And MySQL

Submitted by:

Mukhrit Gupta (111915073)

Rakshit Jain (111915100)

INDIAN INSTITUTE OF INFORMATION TECHNOLOGY, PUNE


Date:23/02/2020

CANDIDATES DECLARATION

We hereby certify that the work, which is being presented in the project, entitled
“Dynamic Websites using PHP and MySQL”, in partial fulfillment of the requirement for
project of B.Tech and submitted to the institution is an authentic record of our own work
carried out during the period 12/19 to 2/20 . We have also cited the reference about the
text(s)/ figure(s)/ table(s) from where they have been taken.

Date:23/02/2020 Name and Signatures of the Candidates:

1.) Mukhrit Gupta

2.) Rakshit Jain

This is to certify that the above statement made by the candidates is correct to the best of
my knowledge.

Date: 23/02/2020 Signatures of the Project Supervisors

i
Title: Dynamic Websites Using PHP And MySQL

Introduction:

PHP is the most popular scripting language for web development. It is free, open
source and server-side (the code is executed on the server). MySQL is a Relational Database
Management System (RDBMS) that uses Structured Query Language (SQL). It is also free and
open source. The combination of PHP and MySQL gives unmet options to create just about any
kind of website - from small contact form to large corporate portal.

Our research area mainly focuses on connecting web databases made on PHP using MySQL
Servers.
The motivation behind this project was our interest in back end web-development,mostly
people admire the beauty of the software or the website but never try to get to know whats
behind it.They don’t feel like knowing the backend scripts that made it possible for them to
navigate through the website.Our aim is to develop interest in the minds of clients and people
interested in web development to get beyond front-end scripting and dive into the vast ocean
of knowledge and interpretations that back-end offers,that is why we have chosen PHP and
MySQL as our languages in order to script the back-end of the website in an efficient manner.

PHP was at first created as a simple scripting platform called "Personal Home Page".
Nowadays PHP is an alternative of the Microsoft's Active Server Pages (ASP) technology.PHP is
an open source server-side language which is used for creating dynamic web pages. It can be
embedded into HTML. PHP is usually used in conjunction with a MySQL database on Linux/UNIX
web servers. It is probably the most popular scripting language.PHP is a widely-used general-
purpose scripting language and interpreter that is freely available.

MySQL is a freely available open source Relational Database Management System (RDBMS)

that uses Structured Query Language (SQL).

SQL is the most popular language for adding, accessing and managing content in a database. It
is most noted for its quick processing, proven reliability, ease and flexibility of use. MySQL is an
essential part of almost every open source PHP application. Good examples for PHP & MySQL-
based scripts are WordPress, Joomla, Magento and Drupal.
One of the most important things about using MySQL is to have a MySQL specialized host.

1
Problem Statement:

Developing a website is a priority these days to your business on the


Internet. Designing and Development are the steps that are important. A general
purpose, server-side scripting language running a web server that's designed to
make dynamic pages and applications is needed. The language as a web
development option needs to be secure, fast and a reliable that offers lots more
advantages to make it accessible to a lot of people.

Compared to other languages and especially compared to web frameworks, the


language should be of lower level, less abstract, and more transparent.  There
should be little 'magic' that's running behind the scenes that makes your code
work.  This can be an advantage when you want to understand in detail what is
going on on in your code.  When programming in a more complicated framework,
you may have to go through a lot of classes, subclasses, and 'clever' abstractions
to figure out what is actually happening behind the scenes. The availability of an
easy to host platform has always been the need of the hour and PHP is
absolutely capable of fulfilling this need.

To deliver a database-backed web site, three main technologies are required: a


web server, a
database and a mechanism for these two to interact and incorporate database
content in the
HTML pages.

2
Objectives:

 HTML,CSS,Javascript require good levels of skills and prior programming knowledge


Thus to provide a language that is easy for beginners to pick up is a major objective.
 We need a platform that can be hosted nearly everywhere which is provided by PHP.
 By default there is a 1-1 correspondence between URLs and files, making it easy for
designers, programmers, and other team members to edit and create pages.  This is
especially useful on large, mostly static content sites where there are hundreds and
thousands of content pages, many one-offs and different templates, and routing everything
through a router, controllers and views would be overengineering.
 Scaling PHP is relatively common knowledge.
 To provide frameworks with a relatively easy learning curve.
 Documentation should be excellent.
 Easy to oursource development - there are many coders around the world willing to code
PHP inexpensively.
 Software that needs to be deployed to a wide variety of hosting environments (such as
Wordpress or forums) requires a language that is capable of doing so.

3
Preliminary Literature Review

Preliminary literature review: provide a summary of previous related research on the research
problem and their strength and weakness and a justification of your research - What is known/what
have been done by others? And, why your research is still necessary?

4
Methodology:

 In order to create a MySQL database, you need to launch the XAMPP application first.

 Now navigate to http://localhost/phpmyadmin.

 And click on the Database tab. Now you should see the option to Create a Database and
input field to enter the database name. Write the database name and hit the ‘Create’
button. You will see a success message in a while.

 From the list of tables, you can view your database. You are free to use this database
wherever you like with default settings. By default the HostName is ‘localhost’, MySQL user
is ‘root’ and have no password.
 Tables play a vital role in the storage of information (dynamic content). On XAMPP MySQL
store the information in the tables. You can easily add tables to MySQL using the intuitive
phpMyAdmin user interface. In the phpMyAdmin click on the ‘Structure’ tab. Below the
tables list at the bottom of the page, click on the ‘Create new table on database’ wizard to
get started. First, add the table name and the total number of fields and hit the ‘Go’ button.

 This way you will be launched to a step-by-step wizard where you need to fill up the
required fields. First off, name all the fields and select the relevant type for every field.
However, in order to choose the type, use ‘Type’ drop-down menu and fill a value for the
length of each field. Next, assign ‘Attribute’ to each field. From the ‘Null’ drop-down menu
select the null option and define whether the specified field is a primary key or not. And
finally, select the table type and collation method and click the ‘Save’ button to finish the
table creation process.

 When we install the XAMPP server on a local machine, by default the username is ‘root’
and the password remains empty. Since it is a local server that’s why developers don’t set
any password. However, it’s entirely your choice to set or change the password to
phpMyAdmin on XAMPP. If you want to set a password you can follow the following steps.

5
 Start the XAMPP server by clicking on the ‘Start’ button parallel to MySQL and Apache
server.

 Parallel to MySQL in the Actions column, click on the ‘Admin’ button. And this will open a
page whose URL will be localhost/phpmyadmin. However, you can directly open this page
simply by entering this URL in the browser.

 On this page, click on the ‘User accounts’ option at the top of the page.

 Now press the ‘Edit Privileges’ under ‘Actions’ option for the Username ‘root’ and
Hostname ‘localhost.’

 Now choose the third tab ‘Change password’ and type your password in the provided field,
retype the password to confirm it and then finally click on the ‘Go’ key to conclude the
process.
 Now in order to access the respective PHP file we have to navigate to localhost/h<name of
the directory>/
.

6
Expected Outcome:

The expected outcome will be the respective PHP website linked with the MySQL
database on the local server of APACHE.

Navigation through various sections of the page when given a particular dataset is
possible with MySQL,thus providing data security to various sections of the
website.

References:

1. W3Schools Online Web Tutorials


www.w3schools.com
2. https://www.youtube.com/
3. https://www.wikipedia.org/
4. https://www.geeksforgeeks.org/php/
5. https://www.udemy.com/

S-ar putea să vă placă și