The document discusses various aspects of XML, including its characteristics, structure, and the differences between XML and HTML. It also covers PHP session management, form handling, and the use of cookies. Additionally, it provides examples of PHP code for handling user input and displaying information.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
22 views13 pages
WT - 2
The document discusses various aspects of XML, including its characteristics, structure, and the differences between XML and HTML. It also covers PHP session management, form handling, and the use of cookies. Additionally, it provides examples of PHP code for handling user input and displaying information.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 13
| ig e
Assignment aOnae ute
—plEnlist the chavactenshcs of xML-
tensible: xM1 Qows you +o create.
Le lncosdoninsial
eae] it: XM) Ollows you to ekoxe the data
1. 4 Ss
whot do you mean by stich y form
A_shicky form is a form a
___ | thes informati x
——| you filled it out:
C)
Whioh infor maton is stoved in $ETLES? _
=:
The vam able $. FTIES IS an associative
Lanray containing items uplodded via
[urips pdeTammetiindmx bilpy oaisu aie)
Tustify True ov False
xeate new documents.
exOl saat y)
e) | 1S pom 9 :
jhe Ni Documents Object ModelCDomy
BES no on in-mermomy representation
of
Di what {e session? How +o start .
=A session can be defined Og "O Genes of
xelated interact b
place aver a period of +ime”
1
1 Bs
start C) -Fun con
g) | i tru oture of wel) foxmed
[Explain the at
XML_clocument.
O.xM1 clocument is a well-formed 2
valicl document.
(2) A_well- formed xmi document follomethe
I. syntax Rule. and a valid dacrmer!
[basic xy
||
In a DTD or an XML Gohema
Ae ; : ae
that Kno Nothing about each other canstill
communite cffechvely - they juat haw to
exchange xmMi documents £ yn doyatand —
| ithe meoning of oTp or xm1 acheme.=
a Bimilantes 2g g Hf¥fe rence
| Both methade axe primayily used +o
O==a -
Countex Refresh
|
_ Jaue
0. &_ SERVER L PHP- GEL] := Return the Filename
_ a ng
= Scviet
DS. SERVERC' SERVER. A pee Pp
a address of the host Sewer.
~2, 9 - SERVER SERVER NAME] Returns the
| name of host seyver.= Returns urns the ~
Ber TEMED:
4) $- SERVERC! REGU @ the start of request ~
ae
Pega
e the 8c pr quened~
g— SERVER C'HTTPS)= TS p protocol.
through a secure HTT oe
D)
nig
1). fhe or root element te required for My
(a
a ey Yr
have. oy one root aletaertahie each xmy
p)| List out parts of XML document shuchie
= xm declaration
| Attaibutes
| comments
xm)
xm) attyibutes
| xm]_content
Namespace
eS
2. cn
Haw +o stork 4 destroy session in PHP
Grive_ syntax. Sslon in PHT
— | session is stary
ol_wit rane
start CY functor, Phe session
Sessicn vomanles Ore Set With the PHP
3 -_$~SESST ON,destroy the session, use sessionun set)
_£ session. destroy ¢).
=
eyntax:- Unset CS SESSION C'coanter])s
Tplxm tags are case sensitive (True! False)
a) yo
re a PHP program to store current dote-.
A). WI
time in cookie 2 display last visited op”.
date-tme on the web pag upon xeopening.
of the same page. |
a3 /ehtml>
lz body> |
| e2 eeieae vraited Hm e on the web pagecths
[49 php
& intm = 60% 60% 24% 60 +timec):
getcoo kie C'lastvisit'. cate C'6et=mldly"),
Siptm)s
if Cigset C$-COokIEC! lastvisit' I) f
gvigit = $_ COOK TE Clastvisit'] 3
» your last visit was —”", $visits
4 else
echo" You have. not visited this website
before." 3 k
& > fi aorhina
Zl body? 4! htm!>-<=) >
| Emp Empno=*2" Empnames* Gioutam'
<1gal>
| asg000< a
{ HR
! <<) FE mipy na A Seep oA:
Emp Empna= "4" EMpnume: “jock”
U
£50)> 25000 Tester < Besq>
I <) bot
JoHp file:
T
ot php
low die. c: Seer: CONNGt create object); _—
a ee aa a: aS
: teeho" lho?
ie : 7 & od
te lon < <Date
Pose.
vy: $ emp > attvibutes C12
ip echo “< tr >". $arv C’Empno"). " Sal. "":
: echo”