• No results found

Web Enhanced Application – PHP & MySQL

N/A
N/A
Protected

Academic year: 2022

Share "Web Enhanced Application – PHP & MySQL"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

Gaurav Vaswani

, IJRIT 40

IJRIT International Journal of Research in Information Technology, Volume 1, Issue 10, October, 2013, Pg. 40-49

International Journal of Research in Information Technology (IJRIT)

www.ijrit.com

ISSN 2001-5569

Web Enhanced Application – PHP &

MySQL

Gaurav Vaswani1, Priyanka Punjabi2

1 2 Second Year, Computer Engineering, Vivekananda Education Society’s Institute of Technology Chembur, Mumbai, India.

1[email protected], 2 [email protected]

Abstract

PHP is at the forefront of Web 2.0 and Service Oriented Architectures enabler technologies along with other open source projects MySQL, Apache or JBoss. With ten years of development behind it, PHP is a relatively young programming language.

Nevertheless, millions of developers world-wide use PHP to develop systems that power over 20 million websites. PHP is endorsed not only by its large open source community, but also by leading players and analysts in the IT market such as IBM, Oracle and Microsoft. PHP is ideal for Enterprise applications as it is easy to learn yet robust and flexible enough to power business critical applications. MySQL is a relational database management system (RDBMS), and ships with no GUI tools to administer MySQL databases or manage data contained within the databases. Users may use the included command line tools, or use MySQL "front-ends", desktop software and web applications that create and manage MySQL databases, build database structures, back up data, inspect status, and work with data records. The official set of MySQL front-end tools, MySQL Workbench is actively developed by Oracle, and is freely available for use.

Keywords— PHP, MySQL, Apache, JBoss, Relational Database Management System, WAMP.

1. Introduction

PHP: Hypertext Preproces-sorǁ is an important player in the software development market. Its popularity with both private software developers and corporate IT departments is having a growing impact on the market for commercial software as well. While PHP is heavily used in the development of web based software, it is not limited to this field.

It is also used quite frequently to tie together different existing applications or application modules. The MySQL™

software on the other hand delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

We have used PHP and MySQL to develop a dynamic web application for Curriculum Implementation &

Assessment Norms (CIAAN), to support the needs of institutes to maintain student and staff records. This application, all bundled under the name ―E-CIAANǁ, allows staff to manage students marks, academic progress,

(2)

Gaurav Vaswani

, IJRIT 41

teaching scheme and continuous assessment. The user has the authority to have a continuous assessment of students in terms of attendance, marks and co-curricular activities.

2. PHP Basics

PHP today is a full featured comprehensive programming language with solid object orientation support. While it was called a scripting language in the past, today it is more referred to as a dynamic programming language. Unlike traditional programming languages such as C/C++, PHP does not have to be compiled. Instead the source code is interpreted at runtime.

Fig 1: PHP Model 2.1 PHP Tags

When PHP parses a file, it looks for opening and closing tags, which are <?php and ?> which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows PHP to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser.

PHP also allows for short tags <? and ?> (which are discouraged because they are only available if enabled with short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option.

If a file is pure PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script.

<?php

echo “Hello world”;

//… more code echo “Last statement”;

// the script ends here with no PHP closing tag 2.2 Escaping HTML

Everything outside of a pair of opening and closing tags is ignored by the PHP parser which allows PHP files to have mixed content. This allows PHP to be embedded in HTML documents, for example to create templates.

<p>This is going to be ignored by PHP and displayed by the browser. </p>

(3)

Gaurav Vaswani

, IJRIT 42

<?php

echo „While this is going to be parsed.‟;

?>

<p>This will also be ignored by PHP and displayed by the browser. </p>

2.3 Comments

PHP supports 'C', 'C++' and Unix shell-style (Perl style) comments.

For example:

<?php

Echo „This is a test‟ ; // This is a one //line comment

/*This is a multi-line comment yet another line of comment*/

echo „This is yet another test‟;

echo „One Final Test‟; #This is a #on-line shell style comment

?>

The "one-line" comment styles only comment to the end of the line or the current block of PHP code, whichever comes first. This means that HTML code after // ... ?> or# ... ?> WILL be printed: ?> breaks out of PHP mode and returns to HTML mode, and // or # cannot influence that. If the asp_tags configuration directive is enabled, it behaves the same with // %> and # %>. However, the </script> tag doesn't break out of PHP mode in a one-line comment.

3. Software Features

E-CIAAN has one basic login screen and then has been categorized into five modules:

1. HOME 2. PROFILE 3. E-CIAAN 4. EBOOKS 5. NOTICES

The above five features or the modules are described as:

3.1. Home

This is the basic login screen where each faculty is provided with their own login id and password. Faculties use this id to login into their accounts. After login in to the home page the user gets to view the below form where they can navigate to the menus provided. Below shown is the example of E-Books menu.

(4)

Gaurav Vaswani

, IJRIT 43

3.2. Profile

For the first time the faculty are asked to enter their profile details in four categories. The three categories are a. Personnel Details

b. Educational Qualification c. Workshop/ seminars Attended d. Paper Published

The forms provided to enter the details are self-explanatory and allows the user to edit and update the details.

(5)

Gaurav Vaswani

, IJRIT 44

3.3. E-CIAAN

This is the core of the project. This feature allows the faculties to enter each detail of their record work in a prescribed format.

3.4. E-BOOKS

Additional hands on feature for the faculty as a reference section. EBooks from three mainstream of engineering are categorized as Computers, Electronics and Instrumentation. PDF format of the books are loaded for the easy access and immediate reference.

3.5. NOTICES

This feature provides the latest news about the college and the circulars about the activities in the college. The faculty can also upload their notes and the various links that they want to share.

4. Local-Host Installation – Wamp Server

WAMP - abbreviation of "Windows, Apache, MySQL, and PHP", is an application server platform. Its installation process is as follows:

Step 1: Download the latest version WAMP from http://www.wampserver.com and install the server.

Step 2: Run WAMP server by this selection Start->All programs->WampServer->Start WampServer Now you can see the icon in system tray.

(6)

Gaurav Vaswani

, IJRIT 45

Now you can see the icon in system tray.

Step 3: Start the server Left click on the WAMPP icon in system tray -> It will display list of options->Select

"start all services".

Step 4:Run Now, all services(especially php) are running. Open the default browser and type localhost in address bar ->Hit enter ->It will show the default page of wamp server.

(7)

Gaurav Vaswani

, IJRIT 46

Step 5: Create PHP file Now create aphp file first. Open notepad and type the php code ->Save the file inside this folder with a .php extension

->c://wamp/www/

(8)

Gaurav Vaswani

, IJRIT 47

*also you can create folder inside this folder to more specific.

Step 5: Execute PHP file Open a browser and type the ->localhost -> extend it with ‗/ ‘ -> type the name of the file with the .php extension ->Hit Enter

*In case if the file is inside the folder of ‗www‘ precede the folder name and then the file name

5. Database Design

The database of has been designed using the Structured Query Language (SQL). The E-R diagrams are as follows:

(9)

Gaurav Vaswani

, IJRIT 48

5.1 E-R Diagram :- Students – Class – Marks

5.2 Attributes for Faculty

(10)

Gaurav Vaswani

, IJRIT 49 6. Conclusions

The application developed under php and mysql incorporates the basic necessity of the curriculum implementation.

Using PHP it gives an easy access to the various forms and allows us to have easy implementation of the query database.

7. References

[1] Zend Technologies Library, Zend Technologies Inc.

[2] http://www.php.net/manual/en/index.php [3] http://www.php.net/manual/en/book.mysql.php

References

Related documents

For the second edition, a number of corrections were made, the order of several selections was changed in order to make more favorable page turns, and an alternative version

Beim Vergleich mit den Ergebnissen der Indirekten Methode wird jedoch deutlich, dass auf diese Weise erzielte Ergebnisse einer systematischen Abweichung unterworfen sind,

Where there is a shortfall in field education hours in the social work qualifying program and the social worker has completed a fieldwork placement in a relevant formal academic

Thrust resolution was not characterized quantitatively in great detail during differential operation of the MiDGIT breadboard thruster but results of the differential tests

These data may aid the physician in the evaluation of abdominal pain in premenarchal girls [19] and avoid wasting diagnostic time that could result in ovarian damage and dem-

1) Live with your present setup for a least a couple days before running the script. Make sure it is doing everything you want and no intermittent issues are occurring. 2)

Carrier-Class Features Provide Carrier-Class Benefits The 7450 ESS represents a generational leap in carrier high availability enabling service providers to improve their

So far, the opponents of direct-shipment laws appear to have the upper hand. Only two cases, one in Indiana and the other in Mich- igan, have come down in favor of