Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
WebTartalomfejlesztesGyakjegyzet

WebTartalomfejlesztesGyakjegyzet

Ratings:

5.0

(1)
|Views: 437 |Likes:
Published by api-3760752
Web Tartalomfejlesztés
Gyakorlati jegyzet
Készítette:
Michnay Balázs
michnay@inf.u-szeged.hu
http://www.inf.u-szeged.hu/~michnay
2004
Előszó
E jegyzet a Szegedi Tudományegyetem Web Tartalomfejlesztés c. kurzus gyakorlati anyagát fogalja
össze. Annak ellenére, hogy a jegyzet gyakorlati jellegű, a példák könnyebb megértése érdekében
találhatunk benne némi elméleti anyagot is. Az egyes példaprogramok/példadokumentumok többsége
hozzáférhető és letölthető a következő oldalról: http://www.inf.u-szeged
Web Tartalomfejlesztés
Gyakorlati jegyzet
Készítette:
Michnay Balázs
michnay@inf.u-szeged.hu
http://www.inf.u-szeged.hu/~michnay
2004
Előszó
E jegyzet a Szegedi Tudományegyetem Web Tartalomfejlesztés c. kurzus gyakorlati anyagát fogalja
össze. Annak ellenére, hogy a jegyzet gyakorlati jellegű, a példák könnyebb megértése érdekében
találhatunk benne némi elméleti anyagot is. Az egyes példaprogramok/példadokumentumok többsége
hozzáférhető és letölthető a következő oldalról: http://www.inf.u-szeged

More info:

Published by: api-3760752 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

1
Web Tartalomfejleszt\u00e9s
Gyakorlati jegyzet

K\u00e9sz\u00edtette:
Michnay Bal\u00e1zs
michnay@inf.u-szeged.hu
http://www.inf.u-szeged.hu/~michnay
2004

El\u0151sz\u00f3

E jegyzet a Szegedi Tudom\u00e1nyegyetem Web Tartalomfejleszt\u00e9s c. kurzus gyakorlati anyag\u00e1t fogalja \u00f6ssze. Annak ellen\u00e9re, hogy a jegyzet gyakorlati jelleg\u0171, a p\u00e9ld\u00e1k k\u00f6nnyebb meg\u00e9rt\u00e9se \u00e9rdek\u00e9ben tal\u00e1lhatunk benne n\u00e9mi elm\u00e9leti anyagot is. Az egyes p\u00e9ldaprogramok/p\u00e9ldadokumentumok t\u00f6bbs\u00e9ge hozz\u00e1f\u00e9rhet\u0151 \u00e9s let\u00f6lthet\u0151 a k\u00f6vetkez\u0151 oldalr\u00f3l: http://www.inf.u-szeged.hu/~michnay/webfejl.php. A hivatkozott, let\u00f6lthet\u0151 programok/dokumentumok azonos\u00edt\u00f3it mindenhol []-jelek k\u00f6z\u00f6tt tal\u00e1ljuk. Ha a p\u00e9ld\u00e1k szerint szeretn\u00e9nk keresni, akkor haszn\u00e1ljuk a jegyzet v\u00e9g\u00e9n tal\u00e1lhat\u00f3 tartalomjegyz\u00e9ket, mely a p\u00e9ld\u00e1kra val\u00f3 hivatkoz\u00e1sok hely\u00e9t sorolja fel.

Tartalomjegyz\u00e9k
EL\u0150SZ\u00d3..................................................................................................................................................1
A HTML ALAPJAI...................................................................................................................................4
A HTML-R\u0150L \u00c1LTAL\u00c1BAN....................................................................................................................... 4

AZ ELS\u0150 HTMLDOK UMEN TU M................................................................................................................ 5 Tag-ek HTML-ben............................................................................................................................ 5 Kezd\u0151-, \u00e9s z\u00e1r\u00f3 tag-ek..................................................................................................................... 5 Megjegyz\u00e9sek.................................................................................................................................. 5

EGY HTML DOKUMENTUM FEL\u00c9P\u00cdT\u00c9SE,EL EMEI....................................................................................... 6 A <HTML> tag.................................................................................................................................. 6 A <HEAD> tag.................................................................................................................................. 6 Tov\u00e1bbi tag-ek a HEAD-ben............................................................................................................ 6 A <TITLE> tag.................................................................................................................................. 6 A <BODY> tag.................................................................................................................................. 7

SZ\u00d6VEGFORM\u00c1Z\u00c1SI LEHET\u0150S\u00c9GEK......................................................................................................... 7 Elv\u00e1laszt\u00f3k \u00e9s bekezd\u00e9sek, avagy \u201ebekezd\u00e9sszint\u0171\u201d form\u00e1z\u00e1sok.................................................. 7 C\u00edmsorok.......................................................................................................................................... 8 Karakterek megjelen\u00edt\u00e9se, avagy \u201ekarakterszint\u0171\u201d form\u00e1z\u00e1sok....................................................... 8 Speci\u00e1lis karakterek......................................................................................................................... 9

N\u00c9H\u00c1NY P\u00c9LDADOKUMENTUM............................................................................................................... 10 URL.................................................................................................................................................... 11 N\u00c9H\u00c1NY TOV\u00c1BBI FONTOS HTML TAG................................................................................................. 11

<A> (Anchor).................................................................................................................................. 11
<IMG> (Image)............................................................................................................................... 11
N\u00e9h\u00e1ny hasznos <IMG> attrib\u00fatum:.......................................................................................................... 11
2
<TABLE>........................................................................................................................................ 12
N\u00e9h\u00e1ny fontosabb <TABLE> attrib\u00fatum:................................................................................................... 12
Sz\u00e1mozott, nem sz\u00e1mozott, illetve defin\u00edci\u00f3s felsorol\u00e1s (<UL>, <OL>, <DL>).............................. 13
<FORM>......................................................................................................................................... 14
\u0170rlapvez\u00e9rl\u0151k............................................................................................................................................. 14

FRAME-EK HASZN\u00c1LATA........................................................................................................................ 16 Egyszer\u0171 frame-ek l\u00e9trehoz\u00e1sa..................................................................................................... 16 Frame-ek egym\u00e1sba \u00e1gyaz\u00e1sa...................................................................................................... 17

WEBLAPSZERKESZT\u00c9S A FRONTPAGE SZERKESZT\u0150VEL......................................................................... 19
PHP ALAPOK.......................................................................................................................................21
PHPBLOKKOK..................................................................................................................................... 21
MEGJEGYZ\u00c9SEK PHPPROG RAMBAN..................................................................................................... 21

V\u00c1LTOZ\u00d3K,KI FEJEZ\u00c9SEK,OPER\u00c1TOROK................................................................................................ 22 V\u00e1ltoz\u00f3k.......................................................................................................................................... 22 Konstansok..................................................................................................................................... 22 A PHP4 adatt\u00edpusai........................................................................................................................ 23 \u00c9rt\u00e9k hozz\u00e1rendel\u00e9se v\u00e1ltoz\u00f3hoz.................................................................................................. 23 \u00d6sszehasonl\u00edt\u00f3 oper\u00e1torok............................................................................................................ 24 Logikai oper\u00e1torok.......................................................................................................................... 24 T\u00f6mb\u00f6k........................................................................................................................................... 24

Az array() f\u00fcggv\u00e9ny................................................................................................................................... 24 A sz\u00f6gletes-z\u00e1r\u00f3jel, mint a t\u00f6mb l\u00e9trehoz\u00e1s\u00e1nak eszk\u00f6ze........................................................................ 25 Asszociat\u00edv t\u00f6mb\u00f6k.................................................................................................................................... 25 T\u00f6bbdimenzi\u00f3s t\u00f6mb\u00f6k.............................................................................................................................. 25 T\u00f6mb\u00f6k bej\u00e1r\u00e1sa....................................................................................................................................... 26

VEZ\u00c9RL\u00c9SI SZERKEZETEK PHP-BEN...................................................................................................... 27 T\u00f6bbsz\u00f6r\u00f6s szelekci\u00f3s vez\u00e9rl\u00e9s:................................................................................................... 27 Esetkiv\u00e1laszt\u00e1sos szelekci\u00f3s vez\u00e9rl\u00e9s........................................................................................... 27 El\u00f6ltesztel\u0151 ism\u00e9tl\u00e9ses vez\u00e9rl\u00e9s.................................................................................................... 28 H\u00e1tultesztel\u0151 ism\u00e9tl\u00e9ses vez\u00e9rl\u00e9s.................................................................................................. 28 Sz\u00e1ml\u00e1l\u00e1sos ism\u00e9tl\u00e9ses vez\u00e9rl\u00e9s.................................................................................................. 29

F\u00dcGGV\u00c9NYEK,ELJ\u00c1R\u00c1SOK.................................................................................................................... 29 DINAMIKUS F\u00dcGGV\u00c9NYH\u00cdV\u00c1SOK............................................................................................................. 29 V\u00c1LTOZ\u00d3K HAT\u00d3K\u00d6RE.......................................................................................................................... 30 AZ INCLUDE()F \u00dcG GV\u00c9NY...................................................................................................................... 31

F\u00c1JLOK KEZEL\u00c9SE................................................................................................................................ 31 F\u00e1jlok l\u00e9trehoz\u00e1sa.......................................................................................................................... 31 F\u00e1jlok t\u00f6rl\u00e9se.................................................................................................................................. 31 F\u00e1jlok megnyit\u00e1sa.......................................................................................................................... 32 Olvas\u00e1s f\u00e1jlb\u00f3l................................................................................................................................ 32 \u00cdr\u00e1s f\u00e1jlba, hozz\u00e1f\u0171z\u00e9s f\u00e1jlhoz........................................................................................................ 33 K\u00f6lcs\u00f6n\u00f6s kiz\u00e1r\u00e1s.......................................................................................................................... 33

TOV\u00c1BBI HASZNOS F\u00dcGGV\u00c9NYEK F\u00c1JLOK HASZN\u00c1LATAKOR..................................................................... 34

F\u00e1jl vagy k\u00f6nyvt\u00e1r?.................................................................................................................................... 34 F\u00e1jl l\u00e9tez\u00e9s\u00e9nek ellen\u0151rz\u00e9se..................................................................................................................... 34 F\u00e1jlm\u00e9ret lek\u00e9rdez\u00e9se............................................................................................................................... 34 F\u00e1jl\u00e1llapot lek\u00e9rdez\u00e9se.............................................................................................................................. 34

EGY KONKR\u00c9T P\u00c9LDA \u2013 WEBOLDAL GENER\u00c1L\u00c1SA................................................................................... 35 A megjelenit.php............................................................................................................................. 36 A procedures.php........................................................................................................................... 37

\u0170RLAPOK HASZN\u00c1LATA.........................................................................................................................38
\u00d6nmegh\u00edv\u00f3 HTML k\u00f3d................................................................................................................... 38
EGY KONKR\u00c9T P\u00c9LDA \u2013\u0170RLAPFELDOLGOZ\u00c1S......................................................................................... 39
3

M\u00c1SIK P\u00c9LDA\u2013 SZ\u00c1MKITAL\u00c1L\u00d3S J\u00c1T\u00c9K..................................................................................................40 SZ\u00c1MKITAL\u00c1L\u00d3S J\u00c1T\u00c9K HA A REGISTER_GLOBALS ENGED\u00c9LYEZETT......................................................... 41 SZ\u00c1MKITAL\u00c1L\u00d3S J\u00c1T\u00c9K \u00c1TIR\u00c1NY\u00cdT\u00c1SSAL................................................................................................ 41

\u0170RLAP FELDOLGOZ\u00c1SA K\u00dcLS\u0150PHP PROGRAMMAL................................................................................42
Vend\u00e9gk\u00f6nyv program megval\u00f3s\u00edt\u00e1sa........................................................................................... 42
\u0170RLAP GENER\u00c1L\u00c1SAPHP PROGRAMMAL...............................................................................................43
\u00c1LLAPOTOK T\u00c1ROL\u00c1SA PHPSEG\u00cdTS\u00c9 G\u00c9VEL.......................................................................................... 44
S\u00fctik................................................................................................................................................ 44

A s\u00fctik fel\u00e9p\u00edt\u00e9se....................................................................................................................................... 44 S\u00fctik l\u00e9trehoz\u00e1sa PHP-vel......................................................................................................................... 44 S\u00fctik t\u00f6rl\u00e9se............................................................................................................................................... 45

Munkamenet s\u00fctik.......................................................................................................................... 45
Lek\u00e9rdez\u0151 karakterl\u00e1ncok haszn\u00e1lata............................................................................................ 46

Lek\u00e9rdez\u0151 karakterl\u00e1ncok k\u00e9sz\u00edt\u00e9se.......................................................................................................... 46 Adat tov\u00e1bb\u00edt\u00e1sa lek\u00e9rdez\u0151 karakterl\u00e1ncok seg\u00edt\u00e9s\u00e9g\u00e9vel \u2013 p\u00e9lda........................................................... 46 A lek\u00e9rdez\u0151 karakterl\u00e1ncok feldolgoz\u00e1sa \u2013 p\u00e9lda folytat\u00e1sa..................................................................... 47 Lek\u00e9rdez\u0151 karakterl\u00e1ncok l\u00e9trehoz\u00e1sa f\u00fcggv\u00e9nnyel.................................................................................. 47 A f\u00fcggv\u00e9ny megval\u00f3s\u00edt\u00e1sa:........................................................................................................................ 48

IRODALOM...........................................................................................................................................49
TARTALOMJEGYZ\u00c9K A P\u00c9LD\u00c1KHOZ..............................................................................................49

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
a_clayton liked this
a_clayton liked this
Paulus571 liked this
Laszlo Rogacs liked this
scsizmaz liked this
csore_bela liked this
PcMumus liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->