Sunteți pe pagina 1din 118

PLANET OF THE PHP (PHP FORUM SITE)

A PROJECT REPORT Submitted by

KRUTIL PATEL (080380107042)


In fulfilment for the award of the degree

of

BACHELOR OF ENGINEERING
in

COMPUTER ENGINEERING

R.K. COLLEGE OF ENGINEERING & TECHNOLOGY, KASTURBADHAM, TRAMBA, RAJKOT- 360020

Gujarat Technological University, Ahmadabad

MAY, 2012

R.K. COLLEGE OF ENGINEERING & TECHNOLOGY, KASTURIBHADHAM, TRAMBA, RAJKOT- 360020 COMPUTER ENGINEERING 2012

CERTIFICATE
Date: 21/05/2012

This is to certify that the dissertation entitled PLANET OF THE PHP (PHP FORUM SITE) has been carried out by KRUTIL PATEL, under my guidance in fulfilment of the degree of Bachelor of Engineering in Computer Engineering (8th Semester) of Gujarat Technological University, Ahmadabad during the academic year 2011-12.

Guide: Mrs. Supriya Reddy M.Tech (Asst. Professor)

Head of the Department .

ACKNOWLEDGEMENT

The Satisfactory that accompanies the successful completion of a project would be incomplete without the people who made it possible. encouragement crowned my efforts with success. Their constant guidance and

I wish to express my sincere gratitude to my guide Mrs. Supriya Reddy, Assistant Professor, RK college of Engineering and Technology, Tramba,Rajkot.

I express my profound thanks to Prof. Kamlesh Patel Head of the Department of Computer Engineering, R.K. College of Engineering & Technology. I would like to thank them for their continuous support and encouragement.

Last but not the least, my appreciable also goes to all staff members of the Computer Engineering Department and to my fellow classmates who directly or indirectly helped me.

Krutil Patel 080380107042

ABSTRACT

PHP or the Open Source Scripting Language has remained popular for a while now. Indian PHP programmers are high in demand these days. PLANET OF PHP is for all kind of people who related with web development field, they can view, upload and download scripts. Discussion module also include in this. Photo gallery module is implemented for user cases like how to use particular tool or script .

This portal would be a right place for those who seek information regarding web development knowledge and material. In this portal all kind of web development scripts, videos and discussion topic are available. There is also news latter subscription module so user can subscribe daily news latter for update.

ii

LIST OF FIGURE

Fig no. Fig 4(a) Fig 4(b) Fig 4(c) Fig 4(d) Fig 4(e) Fig 4(f) Fig 4(g) Fig 4(h) Fig 5(a) Fig 5(b) Fig 5(c) Fig 5(d) Fig 5(e) Fig 5(f) Fig 5(g) Fig 8

Title Use case diagram For User Use case diagram For Admin Class Diagram System Activity diagram Context Diagram DFD (Level 1) DFD(Level-2) Control Flow Diagram Component Diagram (Admin) Component Diagram (User) Table and Relationship Activity Diagram Sample Forms State diagram System Architecture Screen shots

Page no. 29 30 31 32 39 40 41 42 47 47 48 52 53 55 57 84

iii

LIST OF TABLES
Table No Table Description Page No

Table 1

Scheduling Representation

Table 2

Risk Related to cost, quality, time

13

Table 3

Software Hardware Requirement

18

Table 4

Data Dictionary

33

Table 5

Decision Table

42

Table 6

Software and hardware Selection

45

Table 7

Test cases

78

iv

LIST OF SYMBOLS, ABBREVIATIONS AND NOMENCLATURE

Abbriviation

Symbol Name

ACTOR

USE CASE

ASSOCIATION

INCLUDE

NOTATION FOR DATA FLOW

Process Name
PROCESS

Entity Name

ENTITY NAME

DATA FLOW

Repository Name

REPOSITORY NAME

NOTATION FOR STATE DIAGRAM

State Name
STATE

Action

START

TRANSITION

vi

NOTATION FOR ACTIVITY DIAGRAM

ACTIVITY

BRANCH/DECISION

CONTROL FLOW

vii

TABLE OF CONTENTS
ACKNOWLEDGEMENT ABSTRACT LIST OF FIGURES LIST OF TABLES LIST OF ABBREVIATIONS TABLE OF CONTENTS
I II III IV V VIII

1. INTRODUCTION
1.1. 1.2. 1.3. 1.4. Project Summary Purpose Scope Technology and Literature Review of Past work 2 2 3 4

2. PROJECT MANAGEMENT 2.1 Project Planning & Scheduling 2.1.1 Project development Approach 2.1.2 Project plan 2.1.3 Schedule Representation 2.2 Risk Management 2.2.1 risk Identification 2.2.2 Risk Analysis
viii

7 7 7 7 8 9 11

2.2.3 Risk Planning 2.3 Estimation 2.3.1 Cost Analysis

13 14 15

3.

SYSTEM REQUIREMENT
3.1 3.2 3.3 User Characteristics Hardware and software requirement Constrains 17 18 18

4.
4.1 4.2 4.3 4.4 4.5 4.6

SYSTEM ANALYSIS
Study of current System Problem and weakness of current Requirement of New System Feasibility Study Requirement Validation Function of system 4.6.1 Use-case Diagram 4.7 Data Modeling 4.7.1 Class Diagram 4.7.2 System Activity 4.7.3 Data Dictionary 4.8 Function and Behavioral Modeling 4.8.1 Context Diagram 4.8.2 Data Flow Diagram 4.8.3 Decision Table 21 22 22 25 27 37 29 31 31 32 33 39 39 40 42

ix

4.8.4 Control Flow Diagram 4.9 Main Module of New System

42 42 45

4.10 Selection of hardware and software

SYSTEM DESIGN
5.1 Database Design 5.1.1 Component Diagram 5.1.2 Table and Relationship 5.1.3 Logical Description of Data 5.2 System Procedural design 5.2.1 Design pseudo code 5.2.2 Flow chart or activity 5.3 Input/Output and Interface Design 5.3.1 sample forms, report 5.3.2 Access Control and security 5.3.3 State-Transition Diagram 5.4 System Architecture Design 47 47 48 49 49 49 52 53 53 55 55 56

6.

IMPLEMENTATION PLANNING AND DETAIL


6.1 6.2 6.3 Implementation Environment Program/module spacification security feature
x

59 59 60

6.4 6.5

coding standard sample coding

60 61

7.

TESTING
7.1 7.2 7.3 7.4 testing plan testing strategy testing method test cases 67 68 70 78 84 101 103 105

8. 9. 10. 11.

SCREEN SHOTS AND USER MANUAL LIMITATION AND FUTURE ENHANCEMENT CONCLUSION AND DISCUSSION REFRENCES

xi

Planet Of PHP (PHP Forum Site)

Introduction

INTRODUCTION

Chapter-1

1.1. 1.2. 1.3. 1.4.

Project Summary Purpose Scope Technology and Literature Review of Past work

RKCET(C.E)

Page 1

Planet Of PHP (PHP Forum Site)

Introduction

1.1 PROJECT SUMMARY

PHP or the Open Source Scripting Language has remained popular for a while now. Indian PHP programmers are high in demand these days. PLANET OF PHP is for all kind of people who related with web development field, they can view, upload and download scripts. Discussion module also include in this.

This portal would be a right place for those who seek information regarding web development knowledge and material. In this portal all kind of web development scripts, videos and discussion topic are available. There is also news latter subscription module so user can subscribe daily news latter for update. As a result of this demand, we have decided to work on a Web-script which would fulfill all the modern day requirements of such php and other open source scripts with technical discussion. In this portal module named forum is implemented using that interested people within same domain can discuss on topics created by admin only

1.2 PURPOSE
Since many years, there have been many people carrying out businesses on the Internet. The high-time requirement of PHP has many reasons behind it. PHP comes handy in website designing and developments that require database connectivity and

web application development. It provides several functionalities in server side web application. These functionalities also help in developing efficient web

development security system. With passing time, PHP scripting language is getting updated with high interactive applications. The free open source of the language makes it easier to understand and convenient to apply.

This open source PHP programming is beneficial to a considerable level as it also helps in reducing the cost of maintenance. There are several benefits of using PHP over other website programming languages like Java, and ASP.NET. Moreover, it is also comparatively easier than using MySQL Server. It can easily fetch the query for any mentioned results. Growth of such community has been very rapid since last few years. So providing resources related to that much big community is a big deal. main purpose
RKCET(C.E) Page 2

Planet Of PHP (PHP Forum Site)

Introduction

for developing planet of php is providing latest and efficient resource to the developer for efficient web developing and providing module for open discussion for share own technical knowledge with same professions people, because sharing knowledge is growth of life .

1.3 SCOPE
PHP or the Open Source Scripting Language has remained popular for a while now. Indian php programmers are high in demand these days. Web Development Application, Product Catalogs, Content Management System, ecommerce B2B B2C Web Portals Development, Payment Gateway, Custom Php Application Development, Static and Dynamic Php MySql Websites Designing and Development kind of

Website Development Services.

Outsourcing PHP Projects Development to India is becoming popular because Offshore Web Developers have got an outstanding experience in Custom Web Development, PHP Website Design, PHP Web Programming and Designing. WeTheDevelopers.com is Leading Web Design Agency in India has been providing PHP Website Designing and Web Application Development Services to clients worldwide.

PHP Web Development Costing Part - PHP is open source language, reducing not just the initial investment but also the execution, maintenance and debugging costs involved in the complete website development cycle throughout the Project. Consistency and Performance of PHP Web Development Php/MySql Web Development is highly Reliable and effective for any complex Web Development Applications used for corporate companies. Support of PHP Web Development - The open source nature of the technologies language provides easy and cost effective support to Design and Develop Various Customized Web Development Applications. High Security of PHP

Website Development - PHP which runs on Apache Web Server which is much healthier and secured as compared to other languages such as ASP.NET, JAVA, VB.NET which runs on IIS.

So scope of this project is much higher, it covers all the person who is related with th website development or web development study , open source scripts are must require for
RKCET(C.E) Page 3

Planet Of PHP (PHP Forum Site)

Introduction

getting high efficient coding in less time because all the out sourcing projects are depends on the time , discussion module is too useful for who share some knowledge with same profession person .

1.4 TECHNOLOGY AND LITERATURE REVIEW

1.4.1 INTRODUCTION ABOUT PHP PHP is a server-side, cross-platform, HTML-embedded scripting language. Currently there are over half a million domains running PHP and it is freely available for download online from www.php.net. Much of PHPs syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly. PHP eliminates the need for numerous small cgi programs by allowing you to place simple scripts directly in your HTML files. It also makes it easier to manage large web sites by placing all components of a web page in a single html file.

For example, if you are creating an online catalog, you will most likely have a design template for all related catalog pages. Traditionally, this design is generated by hand in HTML and different data is presented within the template design. With PHP, one application can be used to generate all the pages required to display items from a database in the proper pages, in the right locations, and with the appropriate related content. This eliminates redundant page generation, simplifying maintenance. PHP also reduces the site down to a handful of template pages, with scripts that generate the rest of the site.

PHP is an excellent alternative to such similar programming solutions as Microsoft's proprietary scripting engine ASP and Allaire's rather expensive ColdFusion. As mentioned before, PHP is a cross-platform language. This doesn't stop with the core PHP code but can be extended to all of PHP's libraries and all code written in PHP. Neither ASP nor ColdFusion can make this claim. PHP has a large feature set which includes built-in support for numerous databases (including Access, LDAP, Oracle, and MSSQL), networking support, zip archiving ,and an excellent set of built-in functions. Furthermore, due in part to it being open source and freely available for download on the web, the language enjoys an active developing environment. Since the syntax structure borrows

RKCET(C.E)

Page 4

Planet Of PHP (PHP Forum Site)

Introduction

heavily from C, it is easy for even the novice programmer to learn the language. PHP is also the oldest HTML-embedded scripting language, giving it a head start on all the others.

1.4.2 MYSQL MySQL is an open source relational database management system. MySQL is a relational database system that is used to store information. MySQL can store many types of data from something as tiny as a single character to as large as complete files or graphics. MySQL is ideal for both small and large applications. 1. Information stored in a MySQL database hosted on a web server can be accessed from anywhere in the world with a computer. 2. MySQL databases are typically used for web application development (often accessed using PHP). 3. MySQL is currently available under two different licensing agreements: free of charge, under the GNU General Public License (GPL) open source system. 4. MySQL is used in a wide range of applications, including data warehousing, e-commerce, Web databases, logging applications and distributed applications. 5. MySQL complies on a number of platforms.

Reasons of using MySQL: 1. MySQL is an extensible, open storage database engine, offering multiple variations such as Berkeley DB, InnoDB, Heap and MyISAM. 2. MySQL integrates seamlessly with a number of programming languages and other web-based technologies. 3. In the way of performance, MySQL is the clear leader, mainly due to the format of its default table, MyISAM. 4. 5. 6. MySQL is characterized as a free, fast, reliable open source relational database. MySQL executes most queries much faster than most other database systems. Because of its modularity and its flexibility in configuration, MySQL can run in systems varying in size from embedded systems to large multiprocessor.

RKCET(C.E)

Page 5

Planet Of PHP (PHP Forum Site)

Project Management

PROJECT MANAGEMENT

Chapter-2

2.1 Project Planning & Scheduling 2.2 Risk Management 2.3 Effort Estimation

RKCET(C.E)

Page 6

Planet Of PHP (PHP Forum Site)

Project Management

2.1 PROJECT PLANNING AND SCHEDULING


2.1.1 PROJECT DEVELOPMENT APPROACH Waterfall Model has been adopted as an approach for development of project. Most of the requirements of the project are fixed and already thought of very less functionality updating expected in future. So Waterfall model is the right approach for our project.

Justification: As our application is a Planet of the php, we all know in the programming language all thing is developed and invented day by day , but in my side all the requirements are clear because only script upload module is for user side . And in that change validation is bit easy then other project module.

As waterfall model is used for project whose requirements and functionalities are already known and as our project falls in this category we have chosen waterfall model as an approach to develop our project.

2.1.2 PROJECT PLAN

Project was well planned. Project began with gathering user requirements, than diagrammatic representation of the functionalities was designed. Required Database was designed and normalized as required. Code was written in such a way that maximum functionality was coded with minimum possible lines of code. Roles and Responsibilities

Whole project is analyzed and designed by me only. (krutil patel). 2.1.3 SCHEDULE REPRESENTATION Scheduling the project task is an important project planning activity. It involves deciding which tasks would be taken up when.

Based on the planned duration of required tests and collection of resources to


RKCET(C.E) Page 7

Planet Of PHP (PHP Forum Site)

Project Management

complete those tasks projected completion date is calculated. We have prepared timeline Chart shown as below fig.
Month Weeks Tasks Understanding the System Analysis requirements Database Design and GUI Coding testing Documentation Learning Process and of 1stjan 15th Feb 1 2 3 16thFeb 3rd Mar 4 1 2 3 4 4thMar 25thMar 1 2 3 4 25thMar-25thApr 1 2 3

Table 1 Project Scheduling Chart

2.2 RISK MANAGEMENT:


Project Risk Management involves conducting risk management planning, engaging in risk identification, completing risk analysis, creating a risk response action plan, and monitoring and controlling risk on a project. Project Risk Management is a continuous process to be engaged in through out the entire project. A key point to remember is that risk is not always bad. There are opportunities and there are threats. The opportunities are the good risks. The treats are the bad risks. The purpose of project risk management is to increase the likelihood and impact of positive events and to decrease the probability and impact of negative events.
RKCET(C.E) Page 8

Planet Of PHP (PHP Forum Site)

Project Management

The need to manage risk increases with system complexity. As the complexity of the system increases, both technical and non-technical (cost and schedule) risks increase. There is an increasing need for more systematic methods and tools to supplement individual knowledge, judgment, and experience. These human traits are often sufficient to address less complex risks. Each Risk Management process results in a specific deliverable which is used as the foundations for the subsequent process. Combined the risk management processes provide a best practice pattern for managing risk on a project. Strategies for Risk Management: Reactive Risk Strategies (Never worrying about problem until they happened) Proactive Risk Strategies (A proactive Strategy begins long before technical work is initiated). Characteristics of Risk: Uncertainty the risk may or may not happen; that is, there are no 100% probable risks. Loss if the risk becomes a reality, unwanted consequences or losses will occur.

2.2.1 Risk Identification Risk Identification is a systematic attempt to specify threats to the project plan (estimates, schedule, resource loading, etc.). By identifying known and predictable risks, the project manager takes a first step toward avoiding them when possible and controlling them when necessary. Performance Risk The degree of uncertainty that product will meet its requirements and be fit for its intended use. As far as our project is concerned, we have given unambiguous requirement of project so that risk is very less.

RKCET(C.E)

Page 9

Planet Of PHP (PHP Forum Site) Cost Risk

Project Management

The project has not much financial impact because the development cost of the project is very less. So it is not much concerned to our project. As far as our project is concerned, we have given unambiguous requirement of project so that risk is very less. Support Risk The degree of uncertainty that the resultant software will be easy to correct, adapt, and enhance. Because of good documentation its easy to correct adapt or enhance the project in future. Schedule risk The degree of uncertainty that the project schedule will be maintained and that the product will be delivered on time. It was very less in our case because of effective management and scheduling of our project guide and his support to schedule work evenly.

One method of identifying risk is to create a risk item checklist. The checklist can be used for risk identification and focuses on some subset of known and predictable risks in the following generic subcategories: Product Size risks associated with the overall size of the software to be built or modified. Business impact risks associated with constraints imposed by management.

RKCET(C.E)

Page 10

Planet Of PHP (PHP Forum Site)

Project Management

Customer Characteristics risks associated with the sophistication of the customer and the developers ability to communicate with the customer in a timely manner. Process Definition risks associated with the degree to which the software process has been defined and is followed by the development organization. Development Environment risks about the availability and quality of the tools to be used to build the project. Technology to be built risk on the complexity of the system to be built and the newness of the technology. Staff size and experience risks with the overall technical and project experience of the software engineers who will handle the work. 2.2.2 Risk Analysis There are certain parameters, which are to be considered while calculating risk analysis for the system, which involves:1. Finding out the possible risks involved in this process. 2. Deciding what precautions we can take if that risk has occurred. There are three types of risks that are associated with the software development process they are as follows: Risk related to cost. Risk related to time. Risk related to quality. 1. Risks related to cost:-

Sr. No. 1 2

Possible Risks Cost of purchasing the software. Cost of purchasing the computer systems.

How to try to overcome We can use open source software This risk cannot be overcome.

RKCET(C.E)

Page 11

Planet Of PHP (PHP Forum Site) 3 Cost of Internet Connectivity to every user of system. Cost for maintenance for the system to work efficiently. Cost of maintaining proper backup's at secure place. More the facilities we provide in the system, such as making it more user friendly and so on our website would have more line of codes.

Project Management This risk cannot be overcome.

This risk cannot be overcome.

This risk cannot be overcome.

We have to buy a very powerful server which has a bigger secondary storage.

Table 2(a) 2. Risk related to quality:Sr. No. Possible Risks How to try to overcome

As we are developing the website on online mobile data, its a huge system with many modules but as we are supposed to complete it within 4 months its not possible to implement all the modules.

This risk cannot be overcome.

Overload on server system due to many people requesting to the server sometime can result in lower performance to the requests made. Lack of knowledge of tool might not result in the best quality output as we are working on a new tool which we are going to learn during our development process.

This risk can be overcome by purchasing more powerful system.

We have to give more efforts and first priority to learn this as fast as possible.

Table 2(b)

RKCET(C.E)

Page 12

Planet Of PHP (PHP Forum Site) 3. Risk related to time:Sr. No. Possible Risks

Project Management

How to try to overcome

Time taken to develop the web application Time taken to performing different operation on system. Time taken by traffic on server.

This risk cannot be overcome

This risk can be overcome by purchasing more powerful system. This risk can be overcome by managing distributed database server. This risk can be overcome through automatic system instead of manual process.

Time taken by verification process, manual process.

Table 2(c) 2.2.3 Risk Planning

Effectiveness The analysis and design phase are quite effective. The user can run any function at any time without any failure. We have used the latest technology and more reliable technological of php so called core php. Efficiency The Efficiency of the proposed application is quite reliable. User can perform any type of query related for searching the images and their various attributes. User will find the application very user-friendly and self-guided. Confidentiality The login session performed by the user during the submission satellite images is quite secure. The login name & password are quite secure and much confidential.

RKCET(C.E)

Page 13

Planet Of PHP (PHP Forum Site) Integrity

Project Management

The user input process and the output process are quite perfect i.e. the user gets what he queries. The application is secure from hacking and prevents itself from poor authority granting procedure since it uses Apache Security services for authorization of users. Availability The system application design is quite interactive and online. The application less threat by availability risk because it depends on availability of web-server (which is quite high). Compliance The situation is not expected to occur because we have so far continuously communicated with users of Mobile Data System and fulfill their needs. However, if there will be any compliance than. Reliability We ensure that all information is quite perfect and reliable. So user can trust on them.

2.3 ESTIMATION
Analysis

I had complete this analysis after gathering all requirements about this topic and preparing diagrams like Entity Relationship, Activity, Context, Data Flow within one month Database design and coding

I had worked on creating designing first by on paper drawing and than make it on system within few days and than I had done coding for it. Page Designing

First I have draw the rough draft for list page of all graphic content and user upload contest page and finally design the user profile page and than I have design the user side page for comment system with detail page of content and than comment management page at client side.

RKCET(C.E)

Page 14

Planet Of PHP (PHP Forum Site) 2.3.1 Cost Analysis There are mainly two types of costs 1. 2. Direct cost Indirect cost.

Project Management

1.

Direct Cost:

In direct cost, cost of the softwares and toll are included. In our project we have used HTML,CSS, JQUERY and php as front end and MySQL as backend. Both free so there is no direct cost in our project.

2.

Indirect Cost:

In Indirect cost, cost of man power is included for the requirement analysis, project development and training of the project given to the user.

For requirement analysis we spend 20 days of time in starting of project. For development we spend 5 to 6 hours per day for 2 to 3 months and for training of the project we will provide 1 week of one trainer to the user. So the cost of this entire is also included in project.

RKCET(C.E)

Page 15

Planet Of PHP (PHP Forum Site)

System Requirement Study

SYSTEM REQUIREMENT STUDY

Chapter-3

3.1 User Characteristics 3.2 H/W & S/W Requirements 3.3 Constraints

RKCET(C.E)

Page 16

Planet Of PHP (PHP Forum Site)

System Requirement Study

3.1 USER CHARACTERISTICS


Every user should be comfortable of working with computer and net browsing. He must have basic knowledge of English too.

We have identified three potential classifications of users of our system:

[1] Visitor user View/Download scripts View forum topics and comments Subscribe newsletter View picture gallery View video gallery Register

[2] Registered User Login View/Download/Upload scripts View forum topics and comments Give comments on forum topics Edit profile Subscribe newsletter View picture gallery View video gallery

[3] Admin User Configure Admins Manage static page content Manage registered user Manage all kind of permission in scripts and comments Manage category list Manage photo gallery and video gallery Manage subscription list Manage newsletter

RKCET(C.E)

Page 17

Planet Of PHP (PHP Forum Site)

System Requirement Study

3.2 HARDWARE AND SOFTWARE REQUIREMENT:


SOFTWARE REQUIREMENTS: Client Web Server Data Base Web Browser, All windows operating System , Linux, Mac Apache Mysql

Interface Development Adobe Dreamviewer CS-3 Internet Browser Mozila firefox, Internet Explorer , Google chrome Table 3 (a) HARDWARE REQUIREMENTS: PC with Processor RAM Hard disk Minimum Pentium IV at 2 GHz 512 MB RAM Minimum 20 GB

Table 3(b)

3.3 MAJOR CONSTRAINTS


User Interface: The User-Interface is with a web application with GUI interaction only in English language. There can be multiple users of the application at a time. When the project is run for the first time, the patient needs to register with the application, after logging to the system, the project successfully commences.

Communications Interfaces: The web application has a communication via a World Wide Web as internet. System users can have a interaction to the application from anywhere in the world with the internet connectivity and sufficient privileges to access the web application as a authenticate user.

RKCET(C.E)

Page 18

Planet Of PHP (PHP Forum Site) Hardware Interface:

System Requirement Study

The web application with internet connectivity works best on 1GB RAM with minimum requirement is 512MB RAM, P-4 processor and 20 GB HDD as hardware limitations.

Software Interface: The application will be interacting after development with windows operating system to develop a system with above mentioned requirements in stipulated period of around 3 months is a major time constraints. In this time frame is all software engineering activities are to be done including testing.

General Constraint: The only constraint coming in the way from system users to use this specific application is that the knowledge of English language and with working knowledge of navigating the web application through web. System Administrator can have the higher level rights for the application which gives the privileges to the admin to edit/delete/create user and alteration in the database and integration of the system.

RKCET(C.E)

Page 19

Planet Of PHP (PHP Forum Site)

System Analysis

SYSTEM ANALYSIS

Chapter-4

4.1 Study of Current System 4.2 Problem & Weakness of Current System 4.3 Requirement of new System 4.4 Feasibility Study 4.5 Requirement Validation 4.6 Functions of System 4.7 Data Modeling 4.8 Function & Behavioral Modeling 4.9 Main Modules of New System 4.10 Section of Hardware and Software and Justification

RKCET(C.E)

Page 20

Planet Of PHP (PHP Forum Site)

System Analysis

4.1 STUDY OF CURRENT SYSTEM


Since years, there have been many people carrying out businesses on the Internet. Growth of such community has been very rapid since last few years. Webmasters (one who does business on the net) follow a per-defined path/strategy to earn money from the net. One such strategy is to create, endorse and manage a website with attracts huge masses of people. Such websites, with lots of traffic can yield into lots of revenue.

But, with growth of Internet, even people have grown. Their demands have increased. Potential clients (users) of these webmasters now demand highly sophisticated, featurerich, very interactive web-portals which are completely different from what they have been using in the past. This growth in demand is becoming very difficult for webmasters to cope up with.

Webmasters may not have programming knowledge. This makes it very, very difficult for them to cope up with growing demand. Currently, in such cases, webmasters approach a web programmer or a company for create a working solution for him/her. Such companies may charge very high as it would be a Custom solution. This affects the bottom line of the webmasters. It is becoming very difficult to carry out business on the net like this.

Getting a little specific would lead us to some specialized problems which these webmasters have. There are multiple categories of websites they develop. Such as, entertainment, social community, information oriented, etc.

In current system for find different content related to web development visit different web site . for example if user wants script , query then surf different websites .and there is no any module for discussion , in current system video gallery and picture gallery is not available. In current system there is only module for script download but user cant upload own script towards the world.

RKCET(C.E)

Page 21

Planet Of PHP (PHP Forum Site)

System Analysis

4.2 PROBLEM AND WEAKNESSES OF CURRENT SYSTEM


In current system not provide all material single place with better user interface, in current system there is no discussion module for query solving.

4.3 REQUIREMENTS OF NEW SYSTEM

This script would be used by crowd around the world. It must be error free. Considering payment is included in the script, there is no room at all for human errors. To start with, this script is bound with some minimum set of requirement and features that it must fulfill. Following is rough draft of expected outcome of the system. Since years, there have been many people carrying out businesses on the Internet. Growth of such community has been very rapid since last few years. Webmasters (one who does business on the net) follow a per-defined path/strategy to earn money from the net. One such strategy is to create, endorse and manage a website with attracts huge masses of people. Such websites, with lots of traffic can yield into lots of revenue.

But, with growth of Internet, even people have grown. Their demands have increased. Potential clients (users) of these webmasters now demand highly sophisticated, featurerich, very interactive web-portals which are completely different from what they have been using in the past. This growth in demand is becoming very difficult for webmasters to cope up with.

Webmasters may not have programming knowledge. This makes it very, very difficult for them to cope up with growing demand. Currently, in such cases, webmasters approach a web programmer or a company for create a working solution for him/her. Such companies may charge very high as it would be a Custom solution. This affects the bottom line of the webmasters. It is becoming very difficult to carry out business on the net like this.

Getting a little specific would lead us to some specialized problems which these webmasters have. There are multiple categories of websites they develop. Such as, entertainment, social community, information oriented, etc.

RKCET(C.E)

Page 22

Planet Of PHP (PHP Forum Site)

System Analysis

In current system for find different content related to web development visit different web site . for example if user wants script , query then surf different websites .and there is no any module for discussion , in current system video gallery and picture gallery is not available. In current system there is only module for script download but user cant upload own script towards the world.
Functional Requirements:

System User Registration Forms, progress tracking, proof attachments. Any citizen of India can register him/herself from anywhere. After submitting the registration detail all user details should go to the system administrator/moderator and after verifying the user entry should be done in web application which contain the user information based on registration and verification On successful submission of verification there should be a verification kit which will send to the user and confirmation of kit can be done manually by system moderators. If any death of system user happens then it should be informed by nearer circumstances. The details of dead user should be removed from the web application. Mobile Health tips and news alert should be delivering to the system users via mail.
Non Functional Requirements:

User Interface and Human Factors Users of the system are users, company owner, system moderator and administrator. Most of the users are familiar with computer system, but particular for this proposed system, at initial stage they required training to get familiar with the functionality. Proposed system should be simple and should support easy navigation with simple html forms. System shall be able to protect from making various types of error, such as bad inputs from the different system users while inserting, updating details.

RKCET(C.E)

Page 23

Planet Of PHP (PHP Forum Site) Performance Characteristics

System Analysis

56 kbps or higher Internet connection is required for Client Server Communication. System should be able to give response on time. Loading time of system should not be too much. Secure access of confidential data (users details). SSL can be used. 24 X 7 availability. Better component design to get better performance at peak time Flexible service based architecture will be highly desirable for future extension. With performance we have to maintain the other factors such as faster access, security, and accuracy and user friendly environment of the system.

Hardware:-

The project of php planet System web application will be compatible on every platform. Operating systems like Windows ME, XP, vista, Windows 7, Linux, and Mac will support it.

Software:-

1) Front end tools: Dreamviewer CS3, JAVA SCRIPT, On the basis of software JAVA, SNMP Programming, XML are the basic three programming languages used in this project. 2) Back end tools MY SQL. This project php planet System have a master database working with web server which one created and maintain by the my SQL server .

RKCET(C.E)

Page 24

Planet Of PHP (PHP Forum Site)

System Analysis

4.4 FEASIBILITY STUDY


Feasibility study is made to see if the project on completion will serve the purpose of the organization for the amount of work, effort and the time that spend on it. Feasibility study lets the developer foresee the future of the project and the usefulness. A feasibility study of a system proposal is according to its workability, which is the impact on the organization, ability to meet their user needs and effective use of resources. Thus when a new application is proposed it normally goes through a feasibility study before it is approved for development. The document provide the feasibility of the project that is being designed and lists various areas that were considered very carefully during the feasibility study of this project such as Technical, Economic and Operational feasibilities. The following are its features:

Technical Feasibility Technical feasibility centers on the existing manual system of the test management process and to what extent it can support the system. According to feasibility analysis procedure the technical feasibility of the system is analyzed and the technical requirements such as software facilities, procedure, inputs are identified. It is also one of the important phases of the System development activities. The system offers greater levels of user friendliness combined with greater processing speed. Therefore, the cost of maintenance can be reduced. Since, processing speed is very high and the work is reduced in the maintenance point of view management convince that the project is operationally feasible.

Economic Feasibility Economic analysis is most frequently used for evaluation of the effectiveness of the system. More commonly known as cost/benefit analysis the procedure is to determine the benefit and saving that are expected from a system and compare them with costs, decisions is made to design and implement the system. This part of feasibility study gives the top management the economic justification for the new system. This is an important input to the management the management, because very often the top management does not like to get confounded by the various technicalities that bound to be associated with a project of this kind. A simple economic analysis that gives the actual comparison of costs

RKCET(C.E)

Page 25

Planet Of PHP (PHP Forum Site)

System Analysis

and benefits is much more meaningful in such cases. In the system, the organization is most satisfied by economic feasibility. Because, if the organization implements this system, it need not require any additional hardware resources as well as it will be saving lot of time.

Behavioral Feasibility: People are inherently resistant to change and computer has been known to facilitate changes. An estimate should be made of how strong the user is likely to move towards the development of computerized system. These are various levels of users in order to ensure proper authentication and authorization and security of sensitive data of the organization. Operational Feasibility: Operational feasibility focuses on whether the system will work when it is developed and installed. Operationally the system is feasible because: There is sufficient support for the project from management and user. The system is well liked and used to the extent that persons will not be able to see reasons for change. The current business methods are not acceptable because the manual system is time consuming. The users though initially repressive worked along with the development team once the initial doubts were cleared.

Since the most trivial of issues assumes a major problematic state later in the development cycle, every possible aspect of operational feasibility was checked. The proposed project passed all the feasibility tests and hence was declared feasible to organization and its functioning. Time Schedule Feasibility: Time is the most affecting factor while making a project or a system like this one. The project should be finished within the assigned time. Otherwise the whole project will be delayed and that is disastrous for a project developer and project leader also. Implementation Feasibility: Implementation feasibility is also a very effecting factor while for a new system. The project manager will check whether the developer can make the project in time with the
RKCET(C.E) Page 26

Planet Of PHP (PHP Forum Site)

System Analysis

specified requirements and best performance. The project leader will also check that the given tools and technologies to the developer will make the system a success or not.

4.5 REQUIREMENT VALIDATION


Main categories to be incorporated: Upload contest, php scripts and comments Browse by contest than which contest are running, Upload scripts and comments And other part of the web script is the as per the user requirement of the other users we can create the project and he can send the user daily newsletter. Admin Level Features: Admin level his work on add/delete web script and maintain the web script and complete management of system with user and admin configure.

Facilities to be provided under each category:

4.6 FUNCTIONS OF SYSTEM

This system performed various function as listed below. User Side Expected Functions

Function 1: Create Home Page Recent scripts added, Search Tab with Advance search by title, latest forum topics created and commented, by category, etc. This would have links to register, upload video, picture , profile, subscribe

Function 2: Registration & Profiles For Users Registration of use is possible, after registration user must activate account using activation code or activation link. User profile would include following:

RKCET(C.E)

Page 27

Planet Of PHP (PHP Forum Site)

System Analysis

Edit Profile, First name, Last name, Email Id, Profile keywords for searching, Hometown, City, Postal code, Country, Profile Image, Personal Info, etc.

Function 3: Contact & Feedback User would be provided with user-friendly feedback form which they can use to contact administrator of the website.

Function 4: Browse content This would be available to everybody on websites (include guests). User can select a category to browse or, he/she can search criteria for brewing content. Function 5: Upload Script Only For Registered user Registered user upload any kind of script with proper name and file extension, for better understanding description is must at the time of script uploading. Function 6: Comments on a forum topics Only For Registered user Registered user only give comment on the forum topics, in comment user attach file with it and also written description for that . Admin Side Expected Functions

Function 1: Configure Admins

In that all ready that have admin rights this kind of user have to make admins and manage all the other created Admins for the system. Function 2: Static page content management In that admin user manage all kind of static page .

Function 3: Add/Delete/Status In this type of function admin have all kind of rights for add , delete and change status of the script uploaded by any user and comment given by any user on the forum topics. Admin have all rights for user management and subscription management. Admin also manage all the content of photo gallery and video gallery. Admin also send news letter to subscribe user from admin panel.
RKCET(C.E) Page 28

Planet Of PHP (PHP Forum Site) 4.6.1 Use-case diagram: Use Case for user

System Analysis

Planet of php
login extends Register

Forgot password home

upload

download

Subscribe

Registered user

comment forum

uses visitor

view forum

view video gallery

view photo gallery

Edit Profile

Fig. 4(a) RKCET(C.E) Page 29

Planet Of PHP (PHP Forum Site)


Use case for administrator

System Analysis

Fig 4(b)

RKCET(C.E)

Page 30

Planet Of PHP (PHP Forum Site)

System Analysis

4.7 DATA MODELING


4.7.1 CLASS DIAGRAM/ E-R DIAGRAM

user +user_id : int -email_id : string -password : string -login_status : bool +verifyLogin() : bool

Registerd user +username : string +first name : string +last name : string +email adress : string +adress : string +contact no : int +downloadScript() -uploadScript() -suscribe() -viewContent() -editProfile() *

Admin -Admin_name : string * * -manageUser() -manageContent() -manageSubscription() -configureAdmins() *

* content -content_id : int -content_type : string +view() +upload() +download()

Script -script_id : int +script_name : string +script_member : string -script_status : bool +script_desc : string +download_count : int +view() +upload() +download()

Forum -forum_id : int +forum_name : string -coment_id : int -coment_desc : string -forum_status : bool -coment_status : string -user_id : int +view() -coment() -manage() Video -video_id : int +video_name : string +video_url : string +view() -manage() photo gallery -gallery_id : int -photo_id : int +gallery_name : string +photo_name : string +view() -manage() subscription -user_id -email -user_name -contact_no -status +add() -manage()

Fig. 4(c)

RKCET(C.E)

Page 31

Planet Of PHP (PHP Forum Site)

System Analysis

4.7.2 ACTIVITY DIAGRAM

home page

/ not registered Register / registered user

/ valid

login page

/ enter user name and password / invalid

/ valid

search matirial/forum

view content

subscribe

coment on forum

edit profile

download

upload

logoff

Fig 4(d)

RKCET(C.E)

Page 32

Planet Of PHP (PHP Forum Site) 4.7.3 Data dictionary


Category Table

System Analysis

Name

Type

Description

Constraint

cat_Id cat_Name cat_Status

Int(11) varchar(255) enum('Active', 'Inactive') enum('Yes', 'No')

Primary key Indicate category name Indicate status active/Inactive Status of delete flag of

NOT NULL NOT NULL category NOT NULL

cat_DeleteFlag

NOT NULL

comment Table

Name Comm_Id Comm_Forum

Type Int(11) Int(11)

Description

Constraint

Primary key NOT NULL Indicate forum name which is NOT NULL commented Comm_Image1 Text Indicate attachment file name if NOT NULL any Comm_Member varchar(255) Indicate member name NOT NULL Comm_Date Date Date of comment NOT NULL Comm_Description Text Comment description NOT NULL Comm_Status enum('Active', Status of comment NOT NULL 'Inactive') Comm_DeleteFalg enum('Yes', Status of comment NOT NULL 'No')
Forum Table

Name

Type

Description

Constraint

Forum_Id Forum_Title Forum_Category

int(11) varchar(255) int(11)

Primary key Title of forum topic Selected Category of forum

NOT NULL NOT NULL NOT NULL

RKCET(C.E)

Page 33

Planet Of PHP (PHP Forum Site)


Forum_Desc Forum_Status Text enum('Active', 'Inactive') enum('Yes', 'No') Description of forum topic Status of forum

System Analysis
NOT NULL NOT NULL

Forum_DeleteFlag

Status of forum

NOT NULL

gallery_content Table
Name Type Description Constraint

gallery_content_Id Id_fkphotogallery gallery_content_Na me gallery_content_Im g

Int(11) int(11) varchar(225)

Primary key Selected photo gallery name Content of gallery

NOT NULL NOT NULL NOT NULL

varchar(225)

Name of photo

NOT NULL

gallery_content_Del eteFlag gallery_content_Sta tus

enum('Yes', 'No') varchar(10)

Status of gallery

NOT NULL

Status of gallery

NOT NULL

Member Table
Name Type Description Constraint

Id Fname Lname Email Mobile RKCET(C.E)

Int(11) varchar(255) varchar(255) varchar(255) varchar(255)

Primary key First name of member Last name of member Email address of member Mobile no of member

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL Page 34

Planet Of PHP (PHP Forum Site)


Telephone Address Photo Username Password Acode Status varchar(255) Text varchar(500) varchar(255) varchar(255) varchar(255) enum('Active', 'Inactive') enum('Yes', 'No') Telephone no of member Address of member Profile picture of member Username of member Password of member Activation code of account Status of account

System Analysis
NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

DeleteFlag

Status of account

NOT NULL

Configure Table
Name Type Description Constraint

Con_Id Con_UserName Con_Password Con_FirstName Con_LastName Con_Email Con_MetaTitle Con_MetaDesc Con_MetaKeyword Con_Status

Int(11) varchar(255) varchar(255) varchar(255) varchar(255) varchar(255) Text Text Text enum('Active ', 'Inactive') enum('Yes', 'No')

Primary key Name of admin user Admin password Admin first name Admin last name Admin configure email adress Admin meta title Admin meta description Admin meta key word Configure status

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

Con_DeleteFlag

Configure status

NOT NULL

RKCET(C.E)

Page 35

Planet Of PHP (PHP Forum Site)


Newsletter Table

System Analysis

Name

Type

Description

Constraint

News_Id News_Title News_Date News_Desc News_Status

Int(11) varchar(255) varchar(20) Text

Primary key Title of newsletter Newsletter created date Description of newsletter

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

enum('Active', Status of newsletter 'Inactive') enum('Yes', 'No') Status of newsletter

News_DeleteFlag

NOT NULL

Page content Table Name Type Description Constraint

Pag_Id Pag_Title Pag_Desc Pag_MetaKeyword Pag_MetaDesc Pag_Status

Int(11) varchar(255) Text Text Text

Primary key Title of page Page description Meta keyword of page Meta description of page

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

enum('Active', Page status 'Inactive')

Pag_DeleteFlag

enum('Yes', 'No')

Page status

RKCET(C.E)

Page 36

Planet Of PHP (PHP Forum Site) Script Table


Field Type Description

System Analysis

Constraint

Script_Id Script_Name Script_Category Script_Image1 Script_Member Script_Description Script_Download Script_Status

Int(11) varchar(255) varchar(255) Text varchar(255) text int(11) enum(Active , Inactive) enum(Yes, No)

Primary key

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

Script_DeleteFalg

Subscribtion Table
Field Type Description Constraint

sub_Id sub_Fname sub_Lname sub_Email sub_Mobile sub_Status

Int(11) varchar(255) varchar(255) varchar(255) varchar(20) enum('Active', 'Inactive') enum('yes', 'no')

Primary key

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

sub_DeleteFlag

NOT NULL

RKCET(C.E)

Page 37

Planet Of PHP (PHP Forum Site) Video Table


Field Type Description

System Analysis

Constraint

video_Id video_Name video_link video_Img video_DeleteFlag

Int(11) varchar(255) Text varchar(255) enum('Yes', 'No') enum('Active', 'InActive')

Primary key

NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

video_Status

NOT NULL

Table 4 . data dictionary

RKCET(C.E)

Page 38

Planet Of PHP (PHP Forum Site)

System Analysis

4.8 FUNCTIONAL AND BEHAVIORAL MODELING


4.8.1 CONTEXT DIAGRAM

Configure Admins Admin Upload and manage scripts login Manage registered user View Forum and give comment

Manage Static Page

Planet Of Php

upload Scripts View Video and Photo gallery download Scripts

Registered user

Manage Category

Status
Fig 4(e)

Register

RKCET(C.E)

Page 39

Planet Of PHP (PHP Forum Site) 4.8.2 DATA FLOW DIAGRAM (0 AND 1 LEVEL)

System Analysis

Admin Details 1.1 Login Details 1.2 manage

Admin

Videos

scripts

forum

coments

Photo gallery

photo

subscription

User

Admin Add, Delete, Block, unblock 2.1 Managing System Details 2.2 view, download, upload& subscription

View, download, upload materials

Admin

Videos

scripts

photo

forum

coment

News latter

Fig 4(f)

RKCET(C.E)

Page 40

Planet Of PHP (PHP Forum Site)


Data Flow Diagram (LEVEL 2)

System Analysis

Visitor Admin Details 1.Login & Uploading System Details

Admin

coment

scripts

content

forum

scripts

video

photo

Registered user Download all item Watch all items upload all item 2.Managing, Viewing,& Subscription System

Admin
Block, Unblock, Add and Delete Videos,,scripts,forum,coments,user and ,send news latter

Fig 4 (g)

Figure 4.9 Data Flow Diagram (LEVEL 2)

RKCET(C.E)

Page 41

Planet Of PHP (PHP Forum Site) 4.8.3 PROCESS SPECIFICATION AND DECISION TABLE

System Analysis

Rule 1: If User is Register user then allow upload scrip, download script, comment on forum Rule 2: If User is Normal User then he/she can see the script. .

Conditions Register User Normal User Action Upload allowed Upload forbidden

Rule 1 Y N

Rule 2 Y Y

Y --Table 5:- Process specification and decision table

--N

4.8.4 CONTROL FLOW

Fig 4(h)

4.9 MAIN MODULES OF NEW SYSTEM


There are mainly two panels in our project i.e. Admin and User Section 1: Home Page Latest uploaded scripts and latest added forum topics are seeing first.
RKCET(C.E) Page 42

Planet Of PHP (PHP Forum Site) Search Tab with advance search by name category, etc.

System Analysis

This would have links to register, upload scripts browse content, profile, and subscription

Section 2: Users, Registration & Profiles In the system there is only two kind of user 1. registered user , registered user can upload any script category wise and also commented on any forum topics . 2. Visitor , that type of user is not able to upload any type of scripts and commented on forum topics. But all users subscribe daily news letter , view picture gallery and video gallery , also view forum topics.

Section 3: Search Content Any type of user make search by writing in the search box , at the time of writing key word in search box , as a part of result related scripts and forum topics displayed.

Section 4: Category In this new system all the forums and scripts are put category wise , so it is easy to find anything in related category , so surfing is fast and efficient.

Section 6: Upload Scripts Registered user can only upload scripts by using giving proper script name and choose category related script ,description of the script is must be required for better understanding. In script uploading supported formats are .zip, .rar, .php, .js, .css only .once user upload script is permit by admin then only it is visible for all other users.

Section 7: Comments on forum topic Registered user only can commented on any forum topics created by admin only .user can comment with attachment and description , but as permit by admin then only its visible for the all users.

RKCET(C.E)

Page 43

Planet Of PHP (PHP Forum Site)

System Analysis

Section 8: Newsletter All type of user can subscribe daily newsletter for getting website updating mail from the admin side . it is the best way to send bulk mail to subscribers and being in touch with the users.

Section 9: Photo gallery This module is visited by all type of user , in that module picture related web development is putted separately.

Section 10: Video gallery This module is also visited by all user, in that video link is shared by admin And once click on that link than links open in parent directory. Admin Side Expected Outcome

Section 1: Dashboard All latest statistics, user , scripts , comments are waiting for permit is shown.

Section 2: Management Users Show all users, add, delete user, edit user, email to a user, ban/unban a user. Add new user, etc. Content Static page , scripts, comments, picture ,video listing.,subscription

Section 3: Configurations & Settings This section would help in changing or configuring parameters of website, max number of entries to show on a page, max number of entries per contest, etc.

RKCET(C.E)

Page 44

Planet Of PHP (PHP Forum Site)

System Analysis

4.10 SELECTION OF HARDWARE AND SOFTWARE AND JUSTIFICATION

Hardware Selection

Hardware Items CPU

Requirements Intel Pentium IV

Justification It processes faster during the accessing the system/application.

Memory

Minimum 128 MB

Its initial memory size to run the application after development.

Disk Space

Minimum 4-5 GB

For the Larger storage of data.

Table 6(a) Hardware Selection

Software Selection

Software Items Operating System

Requirements Microsoft Windows XP Because

Justification our using system LAN is in

connected

network and window XP is best for network connection. Front End Php Used for the web-based

application. Back End Internet Browser MySql Best with php for coding available Web

Mozilla Firefox, Google Currently Chrome

Browsers and works efficiently.

Table 6(b) Software Selection


RKCET(C.E) Page 45

Planet Of PHP (PHP Forum Site)

System Design

SYSTEM DESIGN

Chapter-5

5.1 Database Design 5.2 System Procedural Design 5.3 Input/output and Interface Design 5.4 System Architecture Design

RKCET(C.E)

Page 46

Planet Of PHP (PHP Forum Site)

System Design

5.0 SYSTEM DESIGN 5.1 DATABASE DESIGN/DATA STRUCTURE DESIGN


5.1.1 Component diagram for admin:

admin

login

home page

logout

download

upload

view

manage

Fig 5(a)

Component diagram for Register user:

Registered user

login

home page

photo

logout video forum scripts

Fig 5(b)
RKCET(C.E) Page 47

Planet Of PHP (PHP Forum Site)

System Design

5.1.2 Table and Relationship

Fig 5(c)

RKCET(C.E)

Page 48

Planet Of PHP (PHP Forum Site)

System Design

5.1.3 Logical Description Of Data

The purpose of the logical description of the data is to define basic structure of the application at the conceptual level. The logical database description focuses on the high level data storage areas, known as entities, the actors that interact with these entities, the relationships with these entities and the quantitative metrics about the entities.

This document is referenced by the requirements documents for this component. The logical database description is maintained separately because it forms the basis for physical database description and data dictionary, to be developed during the application development stage. These documents are best maintained in the independent form, due to internal hyperlinks and the way in which these documents are utilized.

This document begins with a logical Entity Relationship Diagram (E-R Diagram), followed by the definitions of each entity shown on ERD. Each entity definition contains a description of the entity, a description of the relationships with other entities, a description of the actors that interact with these entities and their roles, quantitative metrics used to anticipate data loading issues.

5.2 SYSTEM PROCEDURAL DESIGN


5.2.1 Designing psuedo code or algorithm for metod or operation

(1) Script listing function code:-

function scriptlisting($data) { $catcnt = 0; while($scriptrow=mysql_fetch_array($data)){ <div class="video-img1"> <a href="script_detail.php?sid=<?php echo $scriptrow['Script_Id']; ?>" class="read-more"><img src="images/script.png" border="0" /></a><p><strong><a href="script_detail.php?sid=<?php echo $scriptrow['Script_Id']; ?>" class="read-more"><?php echo $scriptrow['Script_Name']; ?></a><br />By : <?php if($scriptrow['Script_Member']==0) { echo getmembername($scriptrow['Script_Member']);
RKCET(C.E) Page 49

?>

Planet Of PHP (PHP Forum Site)


} else { ?>

System Design

<a href="profile_detail.php?pid=<?=$scriptrow['Script_Member'];?>" class="popupwindow read-more" rel="height:350,width:750,toolbar:1,scrollbars:1,status:1,resizable:0,left:50,top:100"><?php echo getmembername($scriptrow['Script_Member']);?></a> <?php } ?> </strong></p> <div><img src="images/video-sep.jpg" border="0" /></div> </div> <?php $catcnt++; } if($catcnt==0) { echo '<div class="new-desc">No Script Found!!!</div>'; } }

(2) Forum listing function code:

function forumlisting($data) { $fcnt = 0; while($forumrow=mysql_fetch_array($data)) { ?> <div class="new-box"> <div class="news-main"> <div style="float:left;" class="news-title"><?php echo $forumrow['Forum_Title']; ?></div> <div style="float:right;" class="news-date">Comment: <?=countcomment($forumrow['Forum_Id']);?></div> <div class="new-desc"><?php echo substr($forumrow['Forum_Desc'],0,225); ?>...</div> <div class="read-more"><a href="forum_detail.php?fid=<?=$forumrow['Forum_Id'];?>" class="read-more">Read more</a></div> </div> </div> <div class="news-sep">&nbsp;</div>
RKCET(C.E) Page 50

Planet Of PHP (PHP Forum Site)


<div class="new-box"></div> <?php $fcnt++; } if($fcnt==0) { echo '<p class="new-desc">No Forum Topic Found!!!</p>'; } }

System Design

(3) get page content detail function code;<?php class admin_page_content extends dbclass{ function get_page_content_detail($sorton, $sorttype, $option, $keyword, $var_limit) { if(isset($keyword) && !empty($keyword)) { $search_cond = " AND ".$option." like '".$keyword."%'"; } $order_cond = ' order by '.$sorton.' '.$sorttype; $query = "select * from page_content where Pag_DeleteFlag='No'".$search_cond.$order_cond.$var_limit; $sql = $this->select($query); return $sql;

RKCET(C.E)

Page 51

Planet Of PHP (PHP Forum Site)


5.2.2 Activity Diagram

System Design

Figure 5(d)

RKCET(C.E)

Page 52

Planet Of PHP (PHP Forum Site) 5.3 INPUT/ OUTPUT AND INTERFACE DESIGN
5.3.1 Samples of Forms, Reports and Interface Page: 1 User login page

System Design

Fig 5 (e) Description:Login page at the user side .

RKCET(C.E)

Page 53

Planet Of PHP (PHP Forum Site)


User side Registration Page:Page: 2

System Design

Description:Registration form at user side.

5.3.2 Access Control and Security


RKCET(C.E) Page 54

Planet Of PHP (PHP Forum Site)


Access Control

System Design

With Client side scripting, application became much more user friendly which gives a classic experience to surf web portal. Only administrator is allowed to change the contents of different modules of web portal. Administrator continuously keeps watch over the user and his activity related to comments, polls and newsletters.

Security Whole application is soundly secured as admin is allowed to access website only after providing correct access information. Users are allowed to subscribe/unsubscribe for newsletter only after providing their email information.

5.3.3 State-Transition Diagram


State Diagram for Admin

Figure 5(f)

RKCET(C.E)

Page 55

Planet Of PHP (PHP Forum Site) 5.4 SYSTEM ARCHITECTURE DESIGN


For admin

System Design

RKCET(C.E)

Page 56

Planet Of PHP (PHP Forum Site)

System Design

For user

Figure : 5(g)

RKCET(C.E)

Page 57

Planet Of PHP (PHP Forum Site)

Implementation Planning & Details

IMPLEMENTATION PLANNING & DETAILS

Chapter6

6.1 Implementation Environment 6.2 Program/Modules Specification 6.3 Security Features 6.4 Coding Standards 6.5 Sample Coding

RKCET(C.E)

Page 58

Planet Of PHP (PHP Forum Site)

Implementation Planning & Details

6.1 IMPLEMENTATION ENVIRONMENT


The system has been developed for Multi-User and that too with user friendly Graphical User Interface (GUI). We used a Top-Down structure of Modules. Top down Structure of Modules is a very general approach to develop a large System. We start at generally lower levels to gain an understanding of the system and gradually moving down to levels of greater details. We have developed three Modules in the System. Each Module specification is given below. The modularization is according to the complexity of the function and layered approach. Modularization provides a level of abstraction to the system. After the completion of each module, a module testing was performed on each. When the development was completed, System testing was performed to test the system.

6.2 MODULES SPACIFICATION


6.2.1 Home page:

Latest uploaded scripts and latest added forum topics are seeing first. Search Tab with advance search by name category, etc. This would have links to register, upload scripts browse content, profile, and subscription

6.2.2

Users, Registration & Profiles

In the system there is only two kind of user 1. registered user , registered user can upload any script category wise and also commented on any forum topics 2. Visitor , that type of user is not able to upload any type of scripts and commented on forum topics. But all users subscribe daily news letter , view picture gallery and video gallery , also view forum topics.. The registered user has his own profile area in which he can do private messaging with the other users, he can send requests to other users.

RKCET(C.E)

Page 59

Planet Of PHP (PHP Forum Site) 6.2.3 Upload Scripts

Implementation Planning & Details

Registered user can only upload scripts by using giving proper script name and choose category related script ,description of the script is must be required for better understanding. In script uploading supported formats are .zip, .rar, .php, .js, .css only .once user upload script is permit by admin then only it is visible for all other users.

6.2.4 Forum

Registered user only can commented on any forum topics created by admin only .user can comment with attachment and description , but as permit by admin then only its visible for the all users.

6.2.5 Admin In the admin panel all kind of management of web site is done like add ,delete , change status and update . and also change some of the configuration setting in the admin panel.

6.3 SECURITY FEATURES

Security is the main master point of this web application. Without security any of the application cant be called as efficient application. And security of data in companies is the security of money. So we cant be easy going for providing security. We have manages sessions in such a way that user cannot access the application through URL writing. We have implemented a Store Procedure with the PHP which will provide the better security to the system users that can be the main focus of our web application of the point of view.

6.4 CODING STANDARDS :


1) Use Meaningful, descriptive words to name variables. Do not use abbreviations. 2) All member variables must be prefixed with underscore (_) so that they can be identified from other local variables.

RKCET(C.E)

Page 60

Planet Of PHP (PHP Forum Site)

Implementation Planning & Details

3) Do not use variable names that resemble keywords. 4) Use appropriate prefix for the UI elements so that you can identify them from the rest of the variables. 5) Store Procedure name should match with file name with suffix StoredProcedure. For example, for the store procedure deadUserStoredProcedure, the file name should be deadUserStoredProcedure.php 6) Comments:Good and meaningful comments make code more maintainable. However, Do not write comments for every line of code and every variable declared. Use // for comments. Avoid using /* */ Write comments wherever required. But good readable code will require very less comments. If all variables and method names are meaningful, that would make the code very readable and will not need many comments. Do not write comments if the code is easily understandable without comment. The drawback of having lot of comments is, if you change the code and forget to change the comment, it will lead to more confusion. // <example> // Add the specific comment to the section //<code> // </example>

6.5 SAMPLE CODING


Sample coding of index.php

<? require "system/config/configure.php"; include_once FUNCTION_PATH.'admin_xajaxfunction.php';


RKCET(C.E) Page 61

Planet Of PHP (PHP Forum Site)

Implementation Planning & Details

require_once CLASS_PATH.'admin_page_content.php'; $obj = new admin_page_content; $rs1 = $obj -> get_page_content_single_detail(2);

$rs2_area = $obj -> get_page_content_single_detail(10);

?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET;?>" /> <META NAME="desription" CONTENT = "<?=CONF_METADESC;?>"> <META NAME="keywords" CONTENT="<?=CONF_METAKEYWORD;?>"> <title><?=CONF_METATITLE;?></title> <link href="style/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="js/jquery.popupwindow.js"></script> <script type="text/javascript"> var profiles = {

window800: { height:800, width:800, status:1 },

window200: {
RKCET(C.E) Page 62

Planet Of PHP (PHP Forum Site) height:200, width:200, status:1, resizable:0 },

Implementation Planning & Details

windowCenter: { height:300, width:400, center:1 },

windowNotNew: { height:300, width:400, center:1, createnew:0 },

windowCallUnload: { height:300, width:400, center:1, onUnload:unloadcallback },

};

function unloadcallback(){ alert("unloaded"); };


RKCET(C.E) Page 63

Planet Of PHP (PHP Forum Site)

Implementation Planning & Details

$(function() { $(".popupwindow").popupwindow(profiles); }); </script> </head> <script language="javascript" src="js/general.js"></script> <noscript> Javascript is disable, please enable to access the site. </noscript> <body>

<?php include('top/top.php'); ?> <div class="banner-top-profile"><img src="images/banner-top-idea.png" border="0"

/></div> <div class="toparea-ideapage-top"></div> <div id="toparea-ideapage-inner">

<div class="entries-heading">Latest Script</div> <div class="next-btn"><div style="float:right;"></div> </div> <div style="clear:both;"> <?php $script="SELECT * FROM script WHERE Script_Status='Active' AND

Script_DeleteFalg='No' order by Script_Id desc limit 4"; $scriptrs=mysql_query($script); scriptlisting($scriptrs); ?> </div> <div style="clear:both; padding-top:10px;"></div>

</div>
RKCET(C.E) Page 64

Planet Of PHP (PHP Forum Site) <div class="toparea-ideapage-bottom"></div> <div id="content1bg-right-idea"> <div class="ideapage-top"></div> <div id="idea-inner"> <div id="innerpage-inner"> <div class="newtop-line">&nbsp;</div> <div class="news-heading">Latest Forum </div> <div class="news-sep">&nbsp;</div>

Implementation Planning & Details

<?php $forum="SELECT * FROM forum WHERE Forum_Status='Active' AND Forum_DeleteFlag='No' order by Forum_Id desc limit 2"; $forumrs=mysql_query($forum); forumlisting($forumrs); ?> </div> </div> <div class="idea-bottom"></div> </div> <?php include('right/right.php'); ?> <?php include('bottom/bottom.php'); ?> </body> </html>

RKCET(C.E)

Page 65

Planet Of PHP (PHP Forum Site)

Testing

TESTING

Chapter-7

7.1 Testing Plan 7.2 Testing Strategy 7.3 Testing Method 7.4 Test Cases

RKCET(C.E)

Page 66

Planet Of PHP (PHP Forum Site)

Testing

7.1 TESTING PLANS


Testing is the process of executing a program with the intent of finding an error. A successful test is one that uncovers an as yet-undiscovered error. Testing demonstrates that software functions appear to be working according to the specification, that performance requirements appear to have been meeting. From the psychological point of view, software analysis and design are constructive tasks, but from the point of View of the designer, testing can be considered destructive. However, if the software engineer doesnt find them, the user will find them. The testing of the system was done with the intention of finding all the possible errors/ bugs in the system. After all at the end to test the software at software validation level I performed test case based testing .In which inherited test cases from the scenarios of the system developed in the Analysis phase in Dynamic Model.

Testing Process We test the software process activities such as Design, Implementation, and Requirement Engineering. Because Design errors are very costly to repair once system has been started to operate, therefore, it is quite obvious to repair them at early stage of the system development.

Requirement Tracebility As most interested portion in the system is system meeting its requirements therefore testing should be planned so that all requirements are individually tested. We checked the output of certain combination of inputs, which gives desirable result, or not. Strictly stick to your requirements specification gives you the path to get desirable result for system users.

RKCET(C.E)

Page 67

Planet Of PHP (PHP Forum Site)

Testing

Testing process

UNIT TESTING

MODULE TESTING

SUB SYSTEM TESTING

SYSTEM TESTING

ACCEPTANCE TESTING

Fig.8.1.1: Testing Process

Tested Items Our tested items are like, User Transaction Module, Approval Module, Tester Module MIS Module ,Admin Module; some of them are tested separately from the application, as a separate application.

Testing Schedule We have tested each module back-to-back so that errors and omissions can be found as early as possible. Once the system has been developed fully we tested it on other machines, which different configuration.

7.2 TESTING STRATEGY:


Testing is very important phase for the development of a application. For any application you cannot say that it is working properly without having proper testing done with it. Testing of a application will assure you and your client that your application is having certain quality with it and will not hold you in the middle of the sea.

RKCET(C.E)

Page 68

Planet Of PHP (PHP Forum Site)

Testing

That is why this application was also having test as a phase to ensure no mistake remained while development of this application. Every component of this application was thoroughly tested and was supplied to the customer only after it passed all the test cases.

For this application, two types of tests were followed:

Unit test Here each module was tested thoroughly using white box testing method. White box testing means the cases did sneak peak in the code snippets and check whether the result coming out of the case is correct or not. Also proper error checking is done or not. This kind of test was done along with the development of the module. Each module has its long list of test cases and must pass all of them. For the display module along with the white box test, we had black box test also. As this module was the one with which a user interacts more, so this type of testing must be done for this module. Also both white box and black box testing was also needed to be done; and to make the testing more optimal, we did white box for unit testing and black box at integration testing.

Integration test This module was done after all the modules were developed and tested thoroughly. After the development of all modules, each module was attached to the main module and then tested again for the proper working of it. Here at the integration level, we did the black box testing. That will give a new dimension for the testing purpose. After the testing was done and all the errors were completed, next module was assigned for the integration process.

These two tests are further sub-divided into following parts:

Functional Tests: This test will cover functional tests from users perspective like input is properly accepted and output properly produced.

RKCET(C.E)

Page 69

Planet Of PHP (PHP Forum Site) Code Test: This test will check the code is written in proper and consistent manner.

Testing

Navigation Test:
This test will test navigational controls at various instances of form operations.

Cosmetic Test:
This test will test the appearance of various forms and user interface. For all kinds of tests, if any error found in during the test, then the process was to correct that error first, then do all the test from the scratch and then go to next test case.

7.3 TESTING METHODS:


There is a plethora of testing methods and testing techniques, serving multiple purposes in different life cycle phases. Classified by purpose, software testing can be divided into: correctness testing, performance is testing, reliability testing and security testing. Classified by life-cycle phase, software testing can be classified into the following categories: requirements phase testing, design phase testing, program phase testing, evaluating test results, installation phase testing, acceptance testing and maintenance testing. By scope, software testing can be categorized as follows: unit testing, component testing, integration testing, and system are testing.

Correctness Testing Correctness is the minimum requirement of software, the essential purpose of testing. Correctness testing will need some type of oracle, to tell the right behavior from the wrong one. The tester may or may not know the inside details of the software module under test, e.g. control flow, data flow, etc. Therefore, either a white-box point of view or black-box point of view can be taken in testing software. We must note that the black-box and white-box ideas are not limited in correctness testing only.

RKCET(C.E)

Page 70

Planet Of PHP (PHP Forum Site) Black Box Testing

Testing

The black-box approach is a testing method in which test data are derived from the specified functional requirements without regard to the final program structure. It is also termed data-driven, input/output driven , or requirements-based testing. Because only the functionality of the software module is of concern, black-box testing also mainly refers to functional testing -- a testing method emphasized on executing the functions and examination of their input and output data. The tester treats the software under test as a black box -- only the inputs, outputs and specification are visible, and the functionality is determined by observing the outputs to corresponding inputs. In testing, various inputs are exercised and the outputs are compared against specification to validate the correctness. All test cases are derived from the specification. No implementation details of the code are considered.

It is obvious that the more we have covered in the input space, the more problems we will find and therefore we will be more confident about the quality of the software. Ideally we would be tempted to exhaustively test the input space. But as stated above, exhaustively testing the combinations of valid inputs will be impossible for most of the programs, let alone considering invalid inputs, timing, sequence, and resource variables. Combinatorial explosion is the major roadblock in functional testing. To make things worse, we can never be sure whether the specification is either correct or complete. Due to limitations of the language used in the specifications (usually natural language), ambiguity is often inevitable. Even if we use some type of formal or restricted language, we may still fail to write down all the possible cases in the specification. Sometimes, the specification itself becomes an intractable problem: it is not possible to specify precisely every situation that can be encountered using limited words. And people can seldom specify clearly what they want -- they usually can tell whether a prototype is, or is not, what they want after they have been finished. Specification problems contribute approximately 30 percent of all bugs in software.

The research in black-box testing mainly focuses on how to maximize the effectiveness of testing with minimum cost, usually the number of test cases. It is not possible to exhaust the input space, but it is possible to exhaustively test a subset of the input space.
RKCET(C.E) Page 71

Planet Of PHP (PHP Forum Site)

Testing

Partitioning is one of the common techniques. If we have partitioned the input space and assume all the input values in a partition is equivalent, then we only need to test one representative value in each partition to sufficiently cover the whole input space. Domain testing partitions the input domain into regions, and considers the input values in each domain an equivalent class. Domains can be exhaustively tested and covered by selecting a representative value(s) in each domain. Boundary values are of special interest. Experience shows that test cases that explore boundary conditions have a higher payoff than test cases that do not. Boundary value analysis requires one or more boundary values selected as representative test cases. The difficulties with domain testing are that incorrect domain definitions in the specification can not be efficiently discovered.

Good partitioning requires knowledge of the software structure. A good testing plan will not only contain black-box testing, but also white-box approaches, and combinations of the two.

White Box Testing Contrary to black-box testing, software is viewed as a white-box, or glass-box in whitebox testing, as the structure and flow of the software under test are visible to the tester. Testing plans are made according to the details of the software implementation, such as programming language, logic, and styles. Test cases are derived from the program structure. White-box testing is also called glass-box testing, logic-driven testing or design-based testing.

There are many techniques available in white-box testing, because the problem of intractability is eased by specific knowledge and attention on the structure of the software under test. The intention of exhausting some aspect of the software is still strong in whitebox testing, and some degree of exhaustion can be achieved, such as executing each line of code at least once (statement coverage), traverse every branch statements (branch coverage), or cover all the possible combinations of true and false condition predicates (Multiple condition coverage).

Control-flow testing, loop testing, and data-flow testing, all maps the corresponding flow structure of the software into a directed graph. Test cases are carefully selected based on
RKCET(C.E) Page 72

Planet Of PHP (PHP Forum Site)

Testing

the criterion that all the nodes or paths are covered or traversed at least once. By doing so we may discover unnecessary "dead" code -- code that is of no use, or never get executed at all, which can not be discovered by functional testing.

In mutation testing, the original program code is perturbed and many mutated programs are created, each contains one fault. Each faulty version of the program is called a mutant. Test data are selected based on the effectiveness of failing the mutants. The more mutants a test case can kill, the better the test case is considered. The problem with mutation testing is that it is too computationally expensive to use. The boundary between black-box approach and white-box approach is not clear-cut. Many testing strategies mentioned above, may not be safely classified into black-box testing or white-box testing.

It is also true for transaction-flow testing, syntax testing, finite-state testing, and many other testing strategies not discussed in this text. One reason is that all the above techniques will need some knowledge of the specification of the software under test. Another reason is that the idea of specification itself is broad -- it may contain any requirement including the structure, programming language, and programming style as part of the specification content. We may be reluctant to consider random testing as a testing technique. The test case selection is simple and straightforward: they are randomly chosen. Study in indicates that random testing is more cost effective for many programs. Some very subtle errors can be discovered with low cost. And it is also not inferior in coverage than other carefully designed testing techniques. One can also obtain reliability estimate using random testing results based on operational profiles. Effectively combining random testing with other testing techniques may yield more powerful and cost-effective testing strategies. Not all software systems have specifications on performance explicitly. But every system will have implicit performance requirements. The software should not take infinite time or infinite resource to execute. "Performance bugs" sometimes are used to refer to those design problems in software that cause the system performance to degrade. Performance has always been a great concern and a driving force of computer evolution. Performance evaluation of a software system usually includes: resource usage, throughput, and stimulus-response time and queue lengths detailing the average or
RKCET(C.E) Page 73

Planet Of PHP (PHP Forum Site)

Testing

maximum number of tasks waiting to be serviced by selected resources. Typical resources that need to be considered include network bandwidth requirements, CPU cycles, disk space, disk access operations, and memory usage. The goal of performance testing can be performance bottleneck identification, performance comparison and evaluation, etc. The typical method of doing performance testing is using a benchmark -- a program, workload or trace designed to be representative of the typical system usage. Reliability Testing Software reliability refers to the probability of failure-free operation of a system. It is related to many aspects of software, including the testing process. Directly estimating software reliability by quantifying its related factors can be difficult. Testing is an effective sampling method to measure software reliability. Guided by the operational profile, software testing (usually black-box testing) can be used to obtain failure data, and an estimation model can be further used to analyze the data to estimate the present reliability and predict future reliability. Therefore, based on the estimation, the developers can decide whether to release the software, and the users can decide whether to adopt and use the software. Risk of using software can also be assessed based on reliability information advocates that the primary goal of testing should be to measure the dependability of tested software.

There is agreement on the intuitive meaning of dependable software: it does not fail in unexpected or catastrophic ways. Robustness testing and stress testing are variances of reliability testing based on this simple criterion.

The robustness of a software component is the degree to which it can function correctly in the presence of exceptional inputs or stressful environmental conditions. Robustness testing differs with correctness testing in the sense that the functional correctness of the software is not of concern. It only watches for robustness problems such as machine crashes, process hangs or abnormal termination. The oracle is relatively simple; therefore robustness testing can be made more portable and scalable than correctness testing. This research has drawn more and more interests recently, most of which uses commercial operating systems as their target, such as the work in.

RKCET(C.E)

Page 74

Planet Of PHP (PHP Forum Site)

Testing

Stress testing, or load testing, is often used to test the whole system rather than the software alone. In such tests the software or system are exercised with or beyond the specified limits. Typical stress includes resource exhaustion, bursts of activities, and sustained high loads.

Security Testing Software quality, reliability and security are tightly coupled. Flaws in software can be exploited by intruders to open security holes. With the development of the Internet, software security problems are becoming even more severe. Many critical software applications and services have integrated security measures against malicious attacks. The purpose of security testing of these systems include identifying and removing software flaws that may potentially lead to security violations, and validating the effectiveness of security measures. Simulated security attacks can be performed to find vulnerabilities.

LEVELS FOR TESTING Field Level Check for Date Validation. Check For chose selected area. Check for all the validation as mentioned in the program specifications. Check for boundary condition, if apply. Check for field for format mask. Checking for possibility of under or overflow for every Variable/expression. Check the calculated field with 3-4 different values or combination of Values. Check weather the inserted record reaches the destination table. Check weather all the fields are stored properly if filled with maximum Possible characters.
In case of Add, enter two or more records to check for the consistent addition. In Case of update, check the data before and after update.

Form Level Check each and every integrity constraints. Check for inter module table updates
RKCET(C.E) Page 75

Planet Of PHP (PHP Forum Site) Query Level

Testing

First execute the query without defining any criteria. This should Fetch all the transaction of base table.

Program Level Understandability: Selection of meaningful variables name. Program should not contain cryptic codes and cryptic data names. Comments used should be simple and precise.

Readability: The code should have proper indentation. There should be blank line at the end of a logical block of code. Too many condition or statements should not be placed on in one line. Maintainability:

Comments should be present at the beginning of every logical block of code. And comments should to describe logic.

7.4 TEST CASES:


It means executing an implementation of software with test data and examining the outputs of the software and its operational behavior to check that it is performing as required. There are different types of tests for verification of software.

Reliability Of the System There are three approaches to reliability of the system.

Error Avoidance: Error Avoidance is impossible in any system, as it points to prevention of errors from occurring in system. In our system, we cannot prevent occurrence of errors because, if user does not call methods properly and does not input appropriate parameters, we are unable to avoid errors.

RKCET(C.E)

Page 76

Planet Of PHP (PHP Forum Site) Error Detection and Correction: -

Testing

Error Detection corresponds to reorganization of errors when they are encountered. In the system, developer use alert message to prompt errors to users. We also use try-catch structure to prompt errors. Alert message shown to users are in well-understood forms. System prompts various error messages like file does not exist, whenever the user tries to open any other file instead of image file. However, system does not support correction of errors; it is user's responsibility to take appropriate action.

Error Tolerance Error Tolerance refers to reorganization of errors when they occur, but enables system to keep running through degraded system. In system will never shutdown automatically due to errors, but it is possible that because of errors it may not work efficiently. For example, if invalid image is given then system will prompt error and it will not shut down. Further more, if user does not add image file, in that case, that layer is not displayed nor activated and any further operations are not done.

Finally theres only one amazing statement that means everything in itself Testing never ends, it just gets transmitted from you to your customer, every time your customer uses the software, a test is being conducted.

RKCET(C.E)

Page 77

Planet Of PHP (PHP Forum Site)

Testing

7.4 TEST CASES


Test case id Test case name Validate (user) Login test case desc Step To verify that required field must not be empty Not enter login name and password and click on Login button Enter login name only and click on Login button test steps expected popup error occur please enter user name popup error occur please enter password popup error occur please enter user name Login successful and content display Actual test case status Design test status (P/F) test prority defect severity

Login01

High

Design

High

Enter password only and click on Login button Enter User name and password both and click on login button

Design

High

Design

High

Register0 1

Validate (user) Registra tion

To verify that required field must not be empty

Not enter email address,user name and password and click on save setting button

Popup message appear please enter first name

Design

High

RKCET(C.E)

Page 78

Planet Of PHP (PHP Forum Site)


Enter first name only all other field are blank Popup message appear please enter email adress Design

Testing
High

Enter first name , email address only all others remaining and click on save setting button

Popup message appear please enter user name'

Design

High

Enter first name,email,u ser name ,password field is remaining and click on save setting button All required field are fill properly then click on save sattings

Popup message appear please enter password

Design

High

Register success fully , activate account using activation code.

Design

High

RKCET(C.E)

Page 79

Planet Of PHP (PHP Forum Site)


Activate0 1 Validate activate account To verify that required field must not be empty Not enter activation code and click on submit button Popup message appear please enter activation code Activate account sucessfully you may proceed. Popup message is appear please enter email adress Password used for registered account is sanded in mail box Design

Testing
High

Enter activation code and click on submit button Forgot pswd01 Validate forgot passwor d To verify that required field must not be empty Not enter email address and click on submit button

Design

high

Design

High

Enter email address and click on submit button

Design

High

U pl oa d0 1

Validate script upload

To verify that required field must not be empty and upload file with some extension only

Not enter script name and select file and click on add

Popup message appear please enter script name Popup message appear please select file

Design

Low

Enter script name but no select any file and click on add

Design

Low

RKCET(C.E)

Page 80

Planet Of PHP (PHP Forum Site)


Enter script name and select file with .docx extension and click on add button Popup message appear please select php,js,rar,z ip or css file only Message show script added sucessfully display after permit by admin Design

Testing
Low

Enter scriot name and select php file and click on add button

Design

High

Co mm ent o1

Validate comment in forum

To verify To verify that required field must not be empty

Not enter description and click on add button

Popup message please enter discription. Add comment

Design

high

Enter all and click

Design

high

News letter o1

Validate newslette r

To verify that required field must not be empty

Not enter in any field and click on Subscribe

Popup message please enter first name Popup message please enter last name

Design

Low

Only enter first name remaining are empty and click on subscribe Enter only first name and last name remaining are

Design

Low

Popup message please enter

Design

Low

RKCET(C.E)

Page 81

Planet Of PHP (PHP Forum Site)


empty and click on subscribe Enter only email address remaining are empty and click on subscribe Enter all field and click on subscribe Enter all field and click on un subscribe email adress

Testing

Popup message please enter first name

Design

Low

Subscripti on is sucessfull Subscripti on is cancled

Design

high

Design

High

Table 7 . Test Cases

RKCET(C.E)

Page 82

Planet Of PHP (PHP Forum Site)

Screen Shots And User Manual

SCREENSHOTS AND USER MANUAL

Chapter-8

RKCET(C.E)

Page 83

Planet Of PHP (PHP Forum Site)

Screen Shots And User Manual

User side Layouts


Home page

Description:Home page of user side ,in this latest script , forum displayed and other navigation link is also there.

RKCET(C.E)

Page 84

Planet Of PHP (PHP Forum Site) Login Page.

Screen Shots And User Manual

From here user logged in to the web site .

RKCET(C.E)

Page 85

Planet Of PHP (PHP Forum Site) Content Page

Screen Shots And User Manual

Description:This page is only displayed after login .


RKCET(C.E) Page 86

Planet Of PHP (PHP Forum Site) User Profile Page

Screen Shots And User Manual

Description:Describes user profile page , its always open in popup window only

RKCET(C.E)

Page 87

Planet Of PHP (PHP Forum Site) Upload Script

Screen Shots And User Manual

Description:Describes Upload script form at user side.

RKCET(C.E)

Page 88

Planet Of PHP (PHP Forum Site) Photo gallery

Screen Shots And User Manual

Description:Photo gallery module

RKCET(C.E)

Page 89

Planet Of PHP (PHP Forum Site) Photo gallery content

Screen Shots And User Manual

Description:Photo gallery content

RKCET(C.E)

Page 90

Planet Of PHP (PHP Forum Site) Video gallery

Screen Shots And User Manual

Description Video gallery module at user side for viewing shared video .

RKCET(C.E)

Page 91

Planet Of PHP (PHP Forum Site) Admin Side Index page of admin side .

Screen Shots And User Manual

Description:Index page at admin side contain direct link for all admin features .

Admin Configure list page

Description Configure admin list shown here .also search admin by name .
RKCET(C.E) Page 92

Planet Of PHP (PHP Forum Site) Configure Admin detail page

Screen Shots And User Manual

Fig8(j) Description Admin detail page contain all required field .

Static page list

Description Static page list which are used in user side .


RKCET(C.E) Page 93

Planet Of PHP (PHP Forum Site)

Screen Shots And User Manual

Page content detail

Description Page content detail , it contain description , meta keyword and meta description.

Category list page

Description All the category of scripts and forum managed here .

RKCET(C.E)

Page 94

Planet Of PHP (PHP Forum Site) Member list page

Screen Shots And User Manual

All registered user list shown here .

Add member

Description Add member from admin side using all required filed

RKCET(C.E)

Page 95

Planet Of PHP (PHP Forum Site) Script list page

Screen Shots And User Manual

All Script listing shown here and maintain it from here.

Script detail page

New script add here at admin side using fillup all required field

RKCET(C.E)

Page 96

Planet Of PHP (PHP Forum Site) Forum list

Screen Shots And User Manual

All Forum listing shown here and maintain from here .

Comment list

Comment related particular forum shown here ,also maintain comments .

Comment detail page

For adding new comments from admin side .


RKCET(C.E) Page 97

Planet Of PHP (PHP Forum Site) Photo gallery list

Screen Shots And User Manual

All photo list .

Add new photo

Add photo from here at admin side .

Add Video

Add new video using existing video link on internet .

RKCET(C.E)

Page 98

Planet Of PHP (PHP Forum Site) Newsletter detail

Screen Shots And User Manual

Add new newsletter using fill required field,

Subscriber list page

Newsletter subscriber list shown here , and also maintain from here.

Add subscriber

Add new subscriber from here at admin side Fig 8 Screen shots.

RKCET(C.E)

Page 99

Planet Of PHP (PHP Forum Site)

Limitation And Future Enhancement

LIMITATION AND FUTURE ENHANCEMENT

Chapter-9

RKCET(C.E)

Page 100

Planet Of PHP (PHP Forum Site)

Limitation And Future Enhancement

LIMITATIONS
There are several limitations of this application which are as listed below:

It can run only on apache servers. It is also compatible with LINUX servers. It is not cent percent safe from professional hackers. User have to follow some terms & conditions For commenting and uploading.
Any person can submit their wrong identity

FUTURE ENHANCEMENT
I would like to introduce this topic in future as: - Template Store. - Usage Example of Script - Article related web development and tutorials of php.

RKCET(C.E)

Page 101

Planet Of PHP (PHP Forum Site)

Conclusion

CONCLUSION

Chapter-10

RKCET(C.E)

Page 102

Planet Of PHP (PHP Forum Site)

Conclusion

CONCLUSION
Open source language like php, java script is widely used in web development. in the web site development is not not efficient all code is handwritten so developer may be used php scripts , so its helpful for that kind of web developer for easy coding . and with help of forum technical discussion is taken so user can share knowledge about the web development and user can also gain the knowledge about the web development . So this portal is very useful for developer community who basically work on open source language. .

RKCET(C.E)

Page 103

Planet Of PHP (PHP Forum Site)

Refrances

REFRENCES

Chapter-11

RKCET(C.E)

Page 104

Planet Of PHP (PHP Forum Site)

Refrances

REFRANCES
1. Michael R Blaha and James Rambaugh Object oriented modeling and design with UML- Second Edition. 2. 3. 4. 5. 6. 7. 8. . Pankaj Jalote Software Engineering A Precise Approach- Wiley India. Pressman Software Engineering A Practitioner Approach- TMH http://99phpscripts.com/help/howitworks http://www.phpjunkyard,com/howitworks.php http://www.logomyway.com/howitworks.php http://www.odinjobs.com/Odin/jobstrendline?id=364&q=Graphic%20Design
http://www.hotscripts.com/category/scripts/php/

RKCET(C.E)

Page 105