lOMoARcPSD|36384841
Blog Management System core
English Language (St. Francis Xavier College Seminary)
Scan to open on Studocu
Studocu is not sponsored or endorsed by any college or university
Downloaded by Prajwal Poojary (
[email protected])
lOMoARcPSD|36384841
ABSTRACT
lOMoARcPSD|36384841
ABSTRACT
“Blog Management System” project is a web-based application that automates
the existing manual system with the help of computerized and full-fledged
computer software, fulfilling their requirements, so that their valuable
information (articles) can be stored for a long period with easy access and
manipulation of the same. The required software and hardware are easily
available and easy to work with. Articles are available publicly so that any user
can view it. This project is written in PHP and MySQL. Here PHP is used as
the Frontend and MySQL is used as the backend. Users can simply click a link
and view the information in the website, like and comment it. In order to share
the article, the user must register with a username and email-id. Admin can
add, update delete the posts and also can view the comments. They can view
subscriber lists, change settings and recover password. Here we have curated a
best blog website that contains information about variety of topics which are
easily accessible for the public to consume, interact and share information.
lOMoARcPSD|36384841
TABLE OF CONTENTS
Sl. No. TITLE PAGE NO
1 Project Description 2
System Analysis
2 Existing System 5
Proposed System
System Specification
3 Hardware Requirement 7
Software Requirement
About Software
System Design
4 Architectural Design 15
Data Flow Diagram
Database Design
5 System Implementation 27
6 System Testing 31
7 Conclusion 36
8 Future Enhancement 38
9 Bibliography 40
10 Appendices 43
1. Sample Source Code 74
2. Sample Screen Layout
lOMoARcPSD|36384841
PROJECT DESCRIPTION
lOMoARcPSD|36384841
Blog Management System maintains a good record of blog post content . This
system helps admin to manage the Blog system details. The main objective of
“Blog Management System” project is easier to get knowledge from anywhere
which save lots of time by buying book from shop.
Main Features
Multiple user access: Allows multiple type of users to login
Functional Admin panel: Allows admin to manage the whole system
Profile update alternative: Allows users to refresh their profile/account
details
Admin Module
Admin will be the user of this project who can control the whole website.
Dashboard: In this section, the admin can briefly view information about
categories, subcategories, Live Blogs, Trash blogs, registered subadmin,
approved comments, unapproved comments, and Total subscribers.
Sub-admins: In this section, admin can mange sub-admins(Add/Update/Delete).
Category: In this section, admin can mange Category(Add/Update/Delete).
Sub Category: In this section, admin can mange sub-
category(Add/Update/Delete).
Posts(Blog): In this section, admin can mange Posts(Add/Update/Delete).
Pages: In this section, admin update the about us and contact us page.
Comments: In this section, admin can view the comments which is given by
readers and approve and unapproved those comments.
Subscribers: In this section, admin can view subscriber lists.
lOMoARcPSD|36384841
Reader/ user In this section, admin changes the setting of a website like logos
contents, etc.
Admin can also recover their own password.
Visitor or Readers Module
Visitor or Readers can visit the website and reads the blogs and subscribe to
themselves.
Reader/ user can also comment on the particular blog.
Reader/ user can also share the posts(blog).
Registration: Before sharing the user have to register using the details.
Login: Reader/ user have to login to share the post.
User can also recover their own password.
lOMoARcPSD|36384841
SYSTEM ANALYSIS
lOMoARcPSD|36384841
SYSTEM ANALYSIS
EXISTING SYSTEM
Based on the information gathered from the existing system, it shows
that manual In our existing system reading books is complement from
anywhere , so taking more time for getting knowledge. So, after conducting
the feasibility study we decided to make a our mind peacefull and happy.
PROPOSED SYSTEM
Proposed system is an Blog management System. Through our
website user can Read the blog from anywhere and can Comment and
share. Our proposed system has the following steps.
1. Data secured in this system.
2. Fast in response..
3. Timely and first report generation.
4. Easy maintain update database.
lOMoARcPSD|36384841
SYSTEM SPECIFICATION
lOMoARcPSD|36384841
SYSTEM SPECIFICATION
HARDWARE SPECIFICATION
Processor: Pentium IV, 2.4
RAM: 256MB
CD RAM Drive: 52X MAX
Hard Disk Drive: 80GB
Mouse: Optical Scroll Mouse
SOFTWARE SPECIFICATION
Operating system:Windows 7
Language Used: PHP
Tools: XAMPP
Webserver: APACHE2
Database: MYSQL
Design Editor: Sublime Text
lOMoARcPSD|36384841
ABOUT SOFTWARE
PHP started out as a small open-source project that evolved as
more and more people found out how useful it was Rasmus Lerdorf
unleashed the first version of PHP way back in 1994.
o PHP is a recursive acronym for "PHP: Hypertext Preprocessor".
o PHP is a server-side scripting language that is embedded in
HTML. It is used to manage dynamic content, databases, session
tracking, even build entire e-commerce sites.
o It is an integrated with a number of popular databases, including
MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft
SQL Server.
o PHP is pleasingly zippy in its execution, especially when
compiled as an Apache module on the UNIX side. The MySQL
server, once started, executes even very complex queries with
huge result sets in record-setting time.
o PHP supports a large number of major protocols such as POP3,
IMAP, and LDAP. PHP4 added support for Java and distributed
object architectures (COM and CORBA), making n- tier
development a possibility for the first time.
o PHP is forgiving: PHP language tries to be as forgiving as possible.
o PHP Syntax as C Language.
lOMoARcPSD|36384841
COMMON USES OF PHP
o PHP performs system functions, i.e., from files on a
system it can create, open, read, write, and close them.
o PHP can handle forms, i.e., gather data from files, save
data to a file, through email you can send data, return data to
the user.
o You add, delete, and modify elements within your database thru PHP.
o Access cookies variables and set cookies.
o Using PHP, you can restrict users to access some pages of your website.
o It can encrypt data.
CHARACTERISTICS OF PHP
Five important characteristics make PHP's practical nature possible:
Simplicity
Efficiency
Security
Flexibility
Familiarity
Instead of lots of commands to output HTML (as seen in C or
Perl), PHP pages contain HTML with embedded code that does
"something" (in this case, output "Hi, I'm a PHP script!"). The PHP
code is enclosed in special start and end processing instructions <? php
and?> that allow you to jump into and out of "PHP mode."
lOMoARcPSD|36384841
What distinguishes PHP from something like client-side
JavaScript is that the code is executed on the server, generating HTML
which is then sent to the client. The client would receive the results of
running that script, but would not know what the underlying code was.
You can even configure your web server to process all your HTML files
with PHP, and then there's really no way that users can tell what you
have up your sleeve.
The best things in using PHP are that it is extremely simple for a
newcomer, but offers many advanced features for a professional
programmer. Don't be afraid reading the long list of PHP's features. You
can jump in, in a short time, and start writing simple scripts in a few
hours
WHAT CAN PHP DO?
PHP is mainly focused on server-side scripting, so you can do
anything any other CGI program can do, such as collect form data,
generate dynamic page content, or send and receive cookies. But PHP
can do much more.
1. Server-side scripting
This is the most traditional and main target field for PHP.
You need three things to make this work. The PHP parser (CGI
or server module), a web server and a web browser. You need to
run the web server, with a connected PHP installation. You can
access the PHP program output with a web browser, viewing the
PHP page through the server. All these can run on your home
machine if you are just experimenting with PHP programming.
10
lOMoARcPSD|36384841
2. Command line scripting
You can make a PHP script to run it without any server
or browser. You only need the PHP parser to use it this way.
This type of usage is ideal for scripts regularly executed using
cron (on *nix or Linux) or Task Scheduler (on Windows). These
scripts can also be used for simple text processing tasks.
3. Writing desktop applications
PHP is probably not the very best language to create a
desktop application with a graphical user interface, but if you
know PHP very well, and would like to use some advanced PHP
features in your client-side applications you can also use PHP-
GTK to write such programs. You also have the ability to write
cross-platform applications this way. PHP-GTK is an extension
to PHP, not available in the main distribution.
PHP can be used on all major operating systems,
including Linux, many Unix variants (including HP-UX, Solaris
and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and
probably others. PHP has also support for most of the web
servers today. This includes Apache, Microsoft Internet
Information Server, Personal Web Server, Netscape and iPlanet
servers, Oreilly Website Pro server, Caudium, Xitami,
OmniHTTPd, and many others. For the majority of the servers,
PHP has a module, for the others supporting the CGI standard,
PHP can work as a CGI processor.
11
lOMoARcPSD|36384841
WHAT IS MYSQL?
MySQL is a fast, easy-to-use RDBMS used being used
for many small and big businesses. MySQL is developed,
marketed, and supported by Oracle. MySQL is becoming so
popular because of many good reasons.
o MySQL is released under an open-source license. So, you have
nothing to pay touse it.
o MySQL is a very powerful program in its own right. It
handles a large subset ofthe functionality of the most
expensive and powerful database packages.
o MySQL uses a standard form of the well-known SQL data language.
o MySQL works on many operating systems and with
many languages including PHP, PERL, C, C++, JAVA
etc
o MySQL works very quickly and works well even with large
datasets.
o MySQL is very friendly to PHP, the most appreciated
language for web development.
12
lOMoARcPSD|36384841
o MySQL supports large databases, up to 50 million rows
or more in a table. The default file size limit for a table is
4GB, but you can increase this (if your operating system
can handle it) to a theoretical limit of 8 million terabytes
(TB).
o MySQL is customizable. The open-source GPL license
allows programmers to modify the MySQL software to fit
their own specific environments.
13
lOMoARcPSD|36384841
SYSTEM DESIGN
14
lOMoARcPSD|36384841
BLOG MANAGEMENT SYSTEM
Admin User
Login
Read / Vist
Blog
Add& Manage
SubAdmin
Login&
Registration
Add& Manage
Category
Share
Add& Manage
SubCategory Logout
Add & Manage
Post(blog)
Manage
Comment
Manage
Subcribers
Log out
15
lOMoARcPSD|36384841
DATA FLOW DIAGRAM
Level 0
Admin
Blog
Blog
Management
database
System
User
16
lOMoARcPSD|36384841
Level 1
Login
User
Login/signup User Login/sign
Read Blog
Read Blog
User process
Share User
Comment
17
lOMoARcPSD|36384841
Level 2
Admin Login
Admin Admin
Admin
Logout
Post
(blog)
Details
Comment Admin Admin
Details
Subcriber
Details
SubAdmin
Details
Website
Setting
18
lOMoARcPSD|36384841
DATABASE DESIGN
Table Name: tbladmin
Purpose: This table is used to store admin details .
S. No Name Date Type Size Constraint Description
1 Id Varchar 10 Primat key To store Id
2 AdminUserName Varchar 120 Not Null To store Admin name
3 AdminPassword VarChar 60 Not Null To store password.
4 AdminEmailId Varchar 120 Not Null To store email id.
5 Usertype int 11 Not Null To store usertype.
6 CreationDa
timestamp - Current_ti To store Ctreation date.
te
mestamp()
UpdationD
7 timestamp - Current_ti To store updation date.
ate
mestamp()
Table Name: tblsite.
Purpose: This table is used to store website setting .
S. No Name Date Type Size Constraint Description
To store Id
1 Id int 10 Primary
key
2 siteTitle int 10 Not Null To store title
3 siteLogo Varchar 120 Not Null To store Logo
19
lOMoARcPSD|36384841
Table Name: tbluser
Purpose: This table is used to store User details.
S. No Name Date Type Size Constraint Description
1 Id Int 10 Primary To store Id
Key
2 FullName Varchar 120 Not Null To store full name
3 MobileNumber BigInt 10 Not Null To store Mobile
Number.
4 Email id Varchar 120 Not Null To store email id.
5 Password VarChar 120 Not Null To store password.
RegDate
6 timestamp - Current_ti To store Register date
mestamp() of user.
Table Name: tblsubscriber
Purpose: This table is used to store subscriber details.
S. No Name Data Type Size Constraint Description
1 Id Int 10 Primary To store Id.
key
2 fullName Varchar 120 Not Null To store state name.
3 subscriberEmail Varchar 120 Not Null To store state email.
Current_time
4 subscriptionDate timestamp _ stamp() To store Register date
20
lOMoARcPSD|36384841
Table Name: tblposts.
Purpose: This table is used to store the post details.
S. No Name Date Type Size Constraint Description
1 ID int 10 Primary key To store id.
2 PostTitle longtext - Not Null To store post title.
3 CategoryId int 10 Not Null To store category id
4 SubCategoryId int 10 Not Null To store subcategory id
5 PostDetails longtext - Not Null To store post details.
6 PostingDate timestamp - Current_tim To store Posting date.
e stamp()
To store updation
7 UpdationDate timestamp - Current_tim
e stamp() date.
8 Is_Active int 1 Not Null To store active status.
9 PostUrl mediumtext - Not Null To store Url of post.
10 PostImage Varchar 200 Not Null To sotre Image.
11 ViewCounter int 10 Not Null To store view count.
12 Image Varchar 20 Not Null To store image.
13 postedBy varchar 200 NottNull To store Post added by
name.
To updated name
14 lastUpdatedBy varchar 200 NotNull
21
lOMoARcPSD|36384841
Table Name: tblpages
Purpose: This table is used to store page details.
S. No Name Data Size Constraint Description
Type
To store id
1 Id int 20 Primary
key
2 PageName Varchar 200 Not Null To store page name
To store
3 PageTitle medium - Not Null
text Title of the page
4 Description medium - Not Null To store description of
text page
5 PostingDate Timestamp _ Current_time To store posting date.
stamp()
6 UpdationDate Timestamp _ Current_time To store updation date.
stamp()
22
lOMoARcPSD|36384841
Table Name: tblcategory
Purpose: This table is used to store category details.
S. No Name Data Size Constraint Description
Type
To store id
1 Id Int 20 Primary
key
2 CategoryName Varchar 200 Not Null To store category name
3 Description Medium - Not Null To store description
text
4 PostingDate Timestamp _ Current_time To store posting date.
stamp()
5 UpdationDate Timestamp _ Current_time To store updation date.
stamp()
6 Is_Active Int 1 Not Null To store active status.
23
lOMoARcPSD|36384841
Table Name: tblsubcategory
Purpose: This table is used to store subcategory details.
S. No Name Data Size Constraint Description
Type
1 SubCategoryId int 20 Primary To store subcategory id
key
2 CategoryId int 10 Not Null To store category name
3 subcategory varchar 100 Not Null To store subcategory
4 SubCatDescription medium - Not Null To store description
text
5 PostingDate Timestamp _ Current_time To store posting date.
stamp()
6 UpdationDate Timestamp _ Current_time To store updation date.
stamp()
7 Is_Active int 1 Not Null To store active status.
24
lOMoARcPSD|36384841
Table Name: tblcomment
Purpose: This table is used to store comment details.
S. No Name Data Size Constraint Description
Type
1 Id int 20 Primary To store id
key
2 postId int 10 Not Null To store post id
3 name varchar 100 Not Null To store name
4 email varchar 100 Not Null To store email
5 comment mediumtext _ Current_time To store comment.
stamp()
6 PostingDate Timestamp _ Current_time To store posting date.
stamp()
7 Is_Active int 1 Not Null To store active status.
25
lOMoARcPSD|36384841
SYSTEM
IMPLEMENTATION
26
lOMoARcPSD|36384841
SYSTEM IMPLEMENTATION
MODULE IMPLEMENTATION
The term implementation has different meanings ranging from the
conversation of a basic application to a complete replacement of a
computer system. The procedure however, is virtually the same.
Implementation is used here to mean the process of converting a new of a
revised system design into an operational one. Conversation is one aspect
of implementation. The other aspects are the post implementation review
and software maintenance. This project has two modules first one is admin
module.
ADMIN
Dashboard: In this section, the admin can see all the details in brief like
total number of category, total number of subcategory, total number of
post(blog) , total number of comment and total number of subscribers
Pages: In this section, admin can manage about us and contact us pages.
Subadmin: In this section, admin can manage subadmin(add, update and
delete etc.)
Category: In this section, admin can manage category(add, update and
delete etc.)
Post(Blog): In this section, admin can manage post (blog)(add, update and
delete etc.)
27
lOMoARcPSD|36384841
Comment: In this section, admin can manage Comment (add, and delete).
Subscriber: In this section, admin can manage Subscriber(add, and delete).
Admin can also update his profile, change password and recover password.
User Module
Home Page: Welcome page of the web page application
About Us: The user see the detail of the Blog Management
Contact Us: The user see contact with Blog Management
Read Blog: In this section, a user/Visitor can read post (blog) , comment and
Share .
Login: To share post(blog) user/visitor have to register to website and then
login .
Users can also update recover the password.
28
lOMoARcPSD|36384841
INSTALLATION PROCEDURE
The user should make sure that processing the system with the
required hardware and software resources with them as started earlier.
The user is accepted to have some basic knowledge in computer
application such as windows operating system.
STEPS
1. Run the XAMPP server Setup file.
2. Agree the terms and conditions for installation.
3. Select the location where “xampp” folder is to be stored.
4. Store the source files inside the “c:\xampp\htdocs” folder for
execution.
5. Then Run the XAMPP Server and PHP MyAdmin for MySQL.
6. Locate localhost://blog management system to execute the
application
USER MANUAL
First go to visit Blog Management System website.
In home page, after login completion move to Dashboard page.
Then Admin add the post(blog) and manage the whole system .
The Admin can view information of subscriber.
Finally click logout to leave your page.
29
lOMoARcPSD|36384841
SYSTEM TESTING
30
lOMoARcPSD|36384841
SYSTEM TESTING
INTRODUCTION
Testing is done to locate any errors in the application. The
common view of testing is that it is performed to prove that there
are no errors in a program. However, this is virtually impossible
since no program will be free and clear form errors. Some useful
and practical approach to trace the errors should be employed.
Test cases have been developed for this purpose.
A test case is a set of data that the system will process as
normal input. Actually, testing is the state if implementation,
which is aimed at ensuring that the system works accurately and
efficiently before live operation commences. Software testing is
one element of a broader topic that is often referred to as
verification and validation.
SOFTWARE TESTING STRATEGIES
A number of testing strategies have been proposed in the
literature. All provide the developer with a template for testing and
all have the following generic characteristics.
Testing begins at the module level and works
“outward” toward the integration of the entire
computer-based system.
Different testing techniques are appropriate at
different points in time.
31
lOMoARcPSD|36384841
The developer of the software and independent test group
conducts testing.
Testing and debugging are different activities, but
debugging must be accommodated in any testing
strategy.
32
lOMoARcPSD|36384841
UNIT TESTING
Unit testing, also known as component testing refers to tests that verify
the functionality of a specific section of code, usually at the function level. In an
object-oriented environment, this is usually at the class level, and the minimal
unit tests include the constructors and destructors.
Unit testing is a set of process done by completing a set of
codes. Errors are rectified easily. After completing the codes, it tested
to verify whether the codes are running correctly.
Test case 1: User Module
Input: Signup to account with valid email-id and password.
Expected Output: Registered Successfully.
INTEGRATION TESTING
Integration testing is the phase in software testing in which individual
software modules are combined and tested as a group. It occurs after unit testing
Integration testing takes as its input modules that have been unit tested, groups
them in larger aggregates, applies tests defined in an integration test plan to
those aggregates, and delivers as its output the integrated system ready for
system testing. Integration testing works to expose defects in the interfaces and
interaction between integrated components (modules). Progressively larger
groups of tested software components corresponding to elements of the
architectural design are integrated and tested until the software works as a
system.
33
lOMoARcPSD|36384841
Test Case 2: In Admin module, delete and update processes are
integrated together to maintain the database manipulation
VALIDATION TESTING
Validation testing is to check the variable in the page. “Password
does not match”. The software should do what the user really
requires.
Test Case3: Login module
This testing is used to check whether the required value for text field is matched
or not.
For example: If the textbox requires an Email-id ([email protected])
then the value should be the required field otherwise the process
should not be validated, then it is called Validation testing.
34
lOMoARcPSD|36384841
CONCLUSION
35
lOMoARcPSD|36384841
CONCLUSION
Blog Management system allows its users to securely register and
log in to their individual accounts and Share the post(blog) according
to their needs. It provides Post(blog)information to everyone in a
very secure manner. Multiple users can work in this system at the
same time under centralized supervision by administrator. User to
share their information in a secure, efficient and effective manner to
admin .
36
lOMoARcPSD|36384841
FUTURE ENHANCEMENT
37
lOMoARcPSD|36384841
FUTURE ENHANCEMENT
The application has covered almost all the requirements.
Further requirements and improvements can easily be done since
the coding is mainly structured or modular in nature. Changing
the existing modules or adding new module can append
improvements. Though the project has met the specified
requirements, it can also be enhanced in many ways. The
following enhancements can be done to develop the project
further.
• New features can be added to the system as per requirements.
• Focusing more on user experience.
• Producing video contents and embedding them within the blog
posts and upload them to You Tube to generate more blog traffic.
• Optimizing the website for google.
• Collaborating with other blog websites to reach a wider audience.
• The demand for authority blogging will increase.
38
lOMoARcPSD|36384841
BIBLIOGRAPHY
39
lOMoARcPSD|36384841
BIBLIOGRAPHY
Books
1. ThomousA.Powell“The Complete Reference
HTML”, Tata McGraw Hill, Second Edition, 2000
2. RasmusLerdorf, Kevin Tatroe, Peter Macintyre,”
Programming PHP”, O`Relily, Shorff Publishers &
Distributer Pvt. Ltd..,2006
3. TalitaTelmaStöckle, Andrew Rogerson
“MasteringCSS3”, Copyright 2012 Smashing
Media GmbH, Freiburg, Germany.
4. Jon Duckett “HTML& CSS Design and build your
websites”, John Wiley & Sons, Inc.., Published
simultaneously in Canada.
5. David Flanagan [O`Reilly] - JavaScript. The Definitive Guide, 6th
edition
Websites
www.w3schools.com
www.stackoverflow.com
www.scribd.com
www.homeandlearn.co.uk
www.codepen.com
www.ebook.com
www.dzyngiri.com
40