SYSTEMSPECIFICATION
SYSTEMSPECIFICATION
SYSTEMSPECIFICATION
TION
CHAPTER 3
3.1 HARDWARESPECIFICATIONS:
Operating System:
windows
10HardDisk:4GB
RAM: 64-
bitKeyboard:
StandardMouse
:Standard
3.2 SOFTWARESPECIFICATIONS:
LanguageUsed:PHP5.6
Data base:
MYSQL5.x,
User InterfaceDesign:
HTML,AJAX,query,JavaScriptSoftware:XA
MPP
3.3.1 PHPTRIAD
PHP TriadinstallsacompleteworkingPHP/MYSQL
serverenvironmentonWindowsplatforms(9x/NT).InstallPHP,MYSQL,Apache,
and PHPMYAdmin.
3.3.1.1 PHP
1
Note:-Codein boldletters shows thePHPcodeembedded within HTML
PHP only parses code within its delimiters. Anything outside its
delimiters is sent directly tothe output and is not parsed by PHP. The most
common delimiters are , which are open and closedelimiters respectively.
Delimiters are also available. Short tags can be used to start PHP code, .These
tags are commonly used, but like ASP-style tags (), they are less portable as
they can bedisabled in the PHP configuration. For this reason, the use of short
tags and ASP-style tags isdiscouraged. The purpose of these delimiters is to
separate PHP code from non-PHP code, includingHTML. Variables are
prefixed with a dollar symbol and a type does not need to be specified
inadvance.Unlike functionand class names, variablenamesarecasesensitive.
1
Both double-quoted (―‖) and heredoc stringsallow the abilityto embed
avariable‘svalue into the string.PHPtreatsnewlines aswhitespacein
themannerofafree-formlanguage(exceptwheninsidestring quotes), and
statements are terminated by a semicolon. PHP has three types of
commentsyntax: /* */ serves as block comments, and // as well as # are used for
inline comments. The echostatement is one of several facilities PHP provides to
output text (e.g. to a web browser). In terms ofkeywords and language syntax,
PHP is similar to most high level languages that follow the C stylesyntax. If
conditions, for and while loops, and function returns are similar in syntax to
languagessuchas C, C++, JavaandPerl.
3.3.1.1.4 DATATYPES
1
Arrays can contain elements of any type that PHP can handle,including
resources, objects, and even other arrays. Order is preserved in lists of values
and
inhasheswithbothkeysandvalues,andthetwocanbeintermingled.PHPalsosupports
strings,which can be used with single quotes, double quotes, or here doc syntax.
The Standard PHP Library(SPL) attempts to solve standard problems and
implements efficient data access interfaces andclasses.
3.3.1.1.5 FUNCTIONS
PHP has hundreds of base functions and thousands more from extensions.
These functionsare well documented on the PHP site, but unfortunately, the
built-in library has a wide variety ofnaming conventions and inconsistencies.
PHP currently has no functions for thread programming.Version 5.2 and earlier
Functions are not first-class functions and can only be referenced by theirname
—directlyor dynamicallybya variablecontainingthe name of thefunction.
1
User-defined functions can be created at any time without being
prototyped. Functions can bedefined inside code blocks, permitting a run-time
decision as to whether or not a function should bedefined. Function calls must
use parentheses, with the exception of zero argument class constructorfunctions
called with the PHP new operator, where parentheses are optional. PHP
supports quasi-anonymous functions through the create _function () function,
although they are not trueanonymous functions because anonymous functions
are nameless, but functions can only bereferencedbyname,
orindirectlythroughavariable $function_name();inPHP.
VERSION5.3ANDNEWER
PHPgainedsupportforfirst-
classfunctionsandclosures.TrueanonymousfunctionssupportedfunctiongetAdde
r ($x) usingthefollowingsyntax:
PHP includes free and open source libraries with the core build. PHP is a
fundamentallyInternet aware system with modules built in for accessing FTP
servers, many database servers,embedded SQL libraries such as embedded Post
SQL, MYSQL and SQ Light, LDAP servers, andothers. Many functions
familiar to C programmers such as those in the studio family are available inthe
standard PHP build. PHP has traditionally used features such as ―magic _quotes
_gpc and
―magic_quotes_runtime‖whichattempttoescapeapostrophes(‗)andquotes(―)instri
ngsinthe assumption that they will be used in databases, to prevent SQL
injection attacks. This leads toconfusion over which data is escaped and which
is not and to problems when data is not in fact usedas input to a database and
13
when the escaping used is not completely correct. To make code
portablebetween servers which do and do not use magic quotes, developers can
preface their code with ascript to reverse the effect of magic quotes when it is
applied. PHP allows developers to writeextensions in C to add functionality to
the PHP language. These can then be compiled into PHP orloaded dynamically
at runtime. Extensions have been written to add support for the Windows
API,process management on Unix-like operating systems, multi byte strings
(Unicode), curl, and severalpopular compression formats. Some more unusual
features include integration with Internet RelayChat, dynamic generation of
images and Adobe Flash content, and even speech synthesis. The
PHPExtension Community Library (PECL) project is a repository for
extensions to the PHP language.Zenprovidesacertificationexam forprogrammers
tobecomecertified PHPdevelopers.
3.3.1.2 MYSQL
Whatisadatabase?
Quitesimply,it‘sanorganizedcollectionofdata.Adatabasemanagement system
(DBMS) such as Access, FileMaker Pro, Oracle or SQL Server provides
youwiththesoftwaretoolsyou needto organizethatdatainaflexiblemanner.
14
It includes facilities to add, modify or delete data from the database, ask
questions (orqueries) about the data stored in the database and produce reports
summarizing selected contents.MYSQL is a multi threaded, multi-user SQL
database management system (DBMS). The basicprogram runs as a server
providing multi-user access to a number of data bases. Originally financedin a
similar fashion to the Boss model, MYSQL was owned and sponsored by a
single for-profitfirm, the Swedish company MYSQLAB now a subsidiary of
Sun Micro system , which holds thecopyright to most of the codebase. The
project‘s source code is available under terms of the
GNUGeneralPublicLicence,aswellasunderavarietyofproprietaryagreements.MY
SQLisadatabase. The data in MYSQL is stored in database objects called tables.
A table is a
collectionofrelateddataentriesanditconsistsofcolumnsandrows.Databasesareusef
ulwhenstoringinformationcategorically.Acompanymayhaveadatabasewiththefoll
owingtables:―Employees‖,
―Products‖,―Customers‖and ―Orders‖.
3.3.1.2.1 DATABASETABLES
Adatabasemostoftencontainsoneormoretables.Eachtableisidentifiedbyaname
(e.g.
―Customers‖or ―Orders‖).Tables contain records(rows) withdata.
3.3.1.2.2 QUERIES
Before you can access data in a database, you must create a connection to
the database. InPHP,this isdonewith theMYSQL_connect ()function.
15
3.1.2.2.2 CLOSINGACONNECTION
Theconnectionwillbeclosedautomaticallywhen
thescriptends.Toclosetheconnectionbefore,usethe MYSQL_close ()function
3.3.1.2.2.3 CREATEADATABASE
16
The CREATE DATABASE statement isused to create a database in
MYSQL.
SyntaxCREATEDATABASEdatabase_nameTogetPHPtoexecutethestatementab
ovewemustusetheMYSQL _query () function. This function is used to send a
query or command to a MYSQLconnection.
3.3.1.2.2.4 CREATEATABLE
3.3.1.2.3 MYSQLFUNCTION
MYSQL_affected_rows— Get numberofaffected rows in previous
MYSQLoperationMYSQL_change_user— Changelogged in
useroftheactiveconnection
MYSQL_client_encoding— Returns the nameofthe
character setMYSQL_close —
CloseMYSQLconnection
MYSQL_connect —Open a connectionto
aMYSQLServerMYSQL_create _db —Create
aMYSQLdatabase
MYSQL_data_seek —Move
internalresult pointerMYSQL_db _name
—Get result data
MYSQL_db_query—SendaMYSQLquery
MYSQL_drop_db —Drop (delete) aMYSQLdatabase
MYSQL _error — Returns the numerical value of the error message
from previousMYSQLoperation MYSQL_error— Returns thetextof
17
theerrormessagefrom previous
MYSQL operation MYSQL _escape _string — Escapes a string for use in a
MYSQL _queryMYSQL_fetch_array—
Fetcharesultrowasanassociativearray,anumericarray,orbothMYSQL_fetch_assoc
— Fetcharesult rowas an associativearray
MYSQL_fetch_field—
Getcolumninformationfromaresultandreturnasan
objectMYSQL_fetch _lengths— getthe length ofeachoutput in
aresult
MYSQL_fetch_object— Fetch aresult row
asanobjectMYSQL_query— Senda
MYSQLquery
MYSQL_result—Get result data
MYSQL _select _db — Select a MYSQL
databaseMYSQL_set_charset—
setstheclientcharactersetMYSQL_stat —
Get currentsystem status
MYSQL _table name — Get table name
of fieldMYSQL_thread _id —Return the
current threadID
18
MYSQL_unbuffered_query—
SendanSQLquerytoMYSQL,withoutfetchingandbufferingtheresult
3.3.1.3.1 DREAMWEAVERANDACCESSIBILITY
Accessibility refers to making websites and web products usable for
people with visual,auditory, motor, and other disabilities. Examples of
accessibility features for software products andwebsites include screen reader
support, text equivalents for graphics, keyboard shortcuts, change ofdisplay
colours to high contrast, and so on. Dreamweaver provides tools that make the
productaccessible and tools that help you author accessible content: Using
Dreamweaver accessibilityfeatures For Dreamweaver web designers who need
to use accessibility features, Dreamweaveroffers screen reader support,
keyboard navigation, and operating system accessibility support .Formore
information, see Using Dreamweaver accessibility features. Authoring for
accessibility ForDreamweaver web designers who need to create accessible
content, Dreamweaver assists you
increatingaccessiblepagesthatcontainusefulcontentforscreenreadersandcomplyw
ithgovernmentguidelines.
Dreamweaver provides dialog boxes that prompt you to enter accessibility
attributes whenyou insert page elements (see Optimizing the workspace for
accessible page design).For example,the accessibility dialog box for images
remindsyou to add text equivalents forgraphics. Then,when the image appears
on a page for a user with visual disabilities, the screen reader reads
thedescription.
3.3.1.3.2 LAYINGOUTPAGESWITHCSS
In Macromedia Dreamweaver 8, you can use CSS styles to lay out your
page. You can bothinsert div tags manually and apply CSS positioning styles to
them, or you can use Dreamweaverlayers to create your layout. A layer in
19
Dreamweaver is an HTML page element—specifically, a divtag, or any other
tag—that has an absolute position assigned to it. Whether you use CSS, tables,
orframes to lay out your pages, Dreamweaver has rulers and grids for visual
guidance in your layout.Dreamweaver alsohasa tracing image feature,whichyou
can use tore-create a page design thatwas created in a graphics application.
Client-side role of forms support the client side of the client-server relationship.
When a visitor enters information into a form displayed in a web browser
(theclient) and clicks the submit button, the information is sent to the server
where aserver-side scriptor application processes it. Common server-side
technologies used for processing form data includeMacromedia ColdFusion,
Microsoft Active Server Pages (ASP), and PHP. The server responds bysending
requested information back to the user (or client), or performing so action based
on theform‘s contents. ( Note : - See Appendix 1 for more about Macromedia
Dreamweaver 8 and PHPMYAdmin)
20
3.3.1.4 PHPMYADMIN
21
analyst surveys. Apache hasattracted so much interest because it is full-
featured, reliable, and free. Originally developed
forUNIX™operatingsystems,ApachehasbeenupdatedtorunonWindows,OS/2,an
dotherplatforms.One aspect of Apache that some site administrators find
confusing — especially thoseunfamiliar it UNIX-style software — is its
configuration scheme. Instead of using a point-and-clickgraphic user interface
(GUI) or Windows Registry keys as most other modern software
packages,Apache generallyrelies on simpletext files foritsconfiguration settings
CONFIGURATIONFILES
Apache uses a system of three text files for managing its configuration
data. All three ofthese files (almost always) appear in Apache‘s. /conf directory
and are designed to be edited bysystem administrators: 1. http conf for general
settings 2. Srm conf for resource setting3. Accessconf for security settings
When Apache first starts, these files are processed in the order shownabove.
22
Originally, the initial installation of Apache included default entries
within each of the threefiles.
InthemostrecentversionsofApache,however,the defaultinstallationhas
changed.Nowhttp
.confistreatedasthe―master‖configurationfileanditcontainsallofthesettings.
Bothsrmconf and access conf still exist in the installation, but they
contain no settings and are empty except forsome comments. We use this
technology to keep the data more secure and easy to handle which
isuserfriendlyand also makes goodresponsiveness.
23