?? phpl.html
字號:
<html>
<head>
<title>PHP Basics</title>
<style type=text/css>A:active {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
A:link {
TEXT-DECORATION: none
}
A:visited {
TEXT-DECORATION: none
}
</style>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<center><table BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="308" >
<caption><TBODY>
<br></TBODY></caption>
<tr>
<td>
<pre><font color="#FF0000">.</font><font color="#000000">########</font><font color="#FF0000">...</font>######<font color="#FF0000">..</font>########<font color="#FF0000">..</font>########
<font color="#FF0000">.</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">......
.</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">.......</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">......
.</font>########<font color="#FF0000">...</font>######<font color="#FF0000">..</font>########<font color="#FF0000">..</font>######<font color="#FF0000">..
.</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.......</font>##<font color="#FF0000">.</font>##<font color="#FF0000">...</font>##<font color="#FF0000">...</font>##<font color="#FF0000">......
.</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">....</font>##<font color="#FF0000">..</font>##<font color="#FF0000">......
.</font>########<font color="#FF0000">...</font>######<font color="#FF0000">..</font>##<font color="#FF0000">.....</font>##<font color="#FF0000">.</font>##<font color="#FF0000">......</font></pre>
</td>
</tr>
</table></center>
<center>
<p><a href="http://blacksun.box.sk/" target="_blank">http://blacksun.box.sk/</a>
<br>Lecturer & Converter: <a href="mailto:aztek@box.sk">AZTEK<a/>
<br>Lecture: PHP Basics</center>
<p><br>
<br>
<br>
<br>
<b><marie></b> Don't drop any missile on Africa, Cyberwolf!
<br><b><Guy_SJS></b> haha
<br><b><Cyberwolf></b> nah i wont :)
<br><font color="#FF0000">* Guy_SJS bombs Saudi Arabia</font>
<br><b><Cyberwolf></b> k, i have a little announcement to make
<br><b><Guy_SJS></b> you getting laid?
<br><b><Cyberwolf></b> everyone pay attention please
<br><b><FatalCure></b> Raise your hand if your going to DefCon
<br><b><Cyberwolf></b> Guy: not yet :)
<br><b><Guy_SJS></b> lol
<br><font color="#FF0000">* chiken will be going next year</font>
<br><b><Cyberwolf></b> AZTEK is going to give an improvised lecture
on PHP
<br><b><Cyberwolf></b> so everyone pay attention and start logging :)
<br><b><AZTEK> ok sup ppl</b>
<br><b><bluehaze></b> woop
<br><b><Serial_Killer></b> sup
<br><b><chiken></b> yay
<br><font color="#FF0000">* bluehaze wants voice :-)</font>
<br><font color="#FF0000">*** Cyberwolf sets mode: +v AZTEK</font>
<br><b><Serial_Killer></b> me too
<br><b><Serial_Killer></b> ?
<br><b><AZTEK> does anyone have any prior experiance in php</b>
<br><b><Serial_Killer></b> :)
<br><b><Serial_Killer></b> ynot really
<br><b><Serial_Killer></b> not*
<br><b><bluehaze></b> not much
<br><b><bluehaze></b> but.. a tiny tiny bit
<br><b><AZTEK> if you look around the web now you see the extentions
.php3 and .php and .php4 alot more now</b>
<br><b><AZTEK> even on box</b>
<br><b><Cyberwolf></b> in rare occasions .phtml also
<br><b><AZTEK> yes</b>
<br><font color="#FF0000">* bluehaze sees .asp more</font>
<br><b><AZTEK> that to</b>
<br><b><bluehaze></b> :-)
<br><b><AZTEK> what php is is a scripting language inseted into html
documents</b>
<br><b><marie></b> php when looking for things on altavista.
<br><font color="#FF0000">*** Ghost_Rider has quit IRC (Quit: "You may
stop this individual, but you can't stop us all... after all, we're all
alike." -)</font>
<br><b><AZTEK> when the server gets a request for a .php or .php3 document</b>
<br><b><AZTEK> it starts up the php module(engin)</b>
<br><b><Serial_Killer></b> btw what PHP stands for
<br><b><Serial_Killer></b> ?
<br><b><AZTEK> the module strips out all of the php tags an leaves their
return values in their place</b>
<br><font color="#FF0000">*** bluehaze has quit IRC (Quit: good users don't
use colored quits)</font>
<br><b><AZTEK> PHP: HyperText Preprocessor</b>
<br><b><AZTEK> thatnks for the ? i almost forgot</b>
<br><b><Serial_Killer></b> np
<br><b><Serial_Killer></b> but why P comes first
<br><<b>AZTEK> thought i have also seen Personal Homepage Preprocessor</b>
<br><b><Serial_Killer></b> oks
<br><b><AZTEK> PHP tags are started <?php and ended ?></b>
<br><b><HardW1r3></b> ok in someones opinion what is the best book to
learn perl from?
<br><b><AZTEK> anything in those tages is attemted to be executed by
the module</b>
<br><b><Serial_Killer></b> PErl by example
<br><b><Serial_Killer></b> great book
<br><b><HardW1r3></b> cool
<br><b><AZTEK> Perl : Black Book</b>
<br><b><HardW1r3></b> thx
<br><b><HardW1r3></b> ok
<br><b><AZTEK> now on to php</b>
<br><b><AZTEK> you can also use <? to start and ?> to end (not good
if you use xml</b>
<br><b><AZTEK> or the <% %> asp tags are also accepted in some casses</b>
<br><b><AZTEK> any comments in php can be given the c type comment which
is eyerthing between /* and */</b>
<br><b><AZTEK> the C++ type comments which is everything on the line
after the //</b>
<br><b><AZTEK> and also the unix shell comments which is every thing
on the line after the #</b>
<br><font color="#FF0000">* Serial_Killer does not know C++</font>
<br><b><AZTEK> its alright</b>
<br><b><AZTEK> now to run php scripts you need access to a server that
runs the php module</b>
<br><b><AZTEK> some people(inculding me) have set up test servers on
their computers</b>
<br><b><AZTEK> everyone got this so far</b>
<br><font color="#FF0000">*** DockAlfer has joined #bsrf</font>
<br><b><Cyberwolf></b> yup
<br><b><Serial_Killer></b> not really
<br><b><Serial_Killer></b> :)
<br><b><AZTEK> its ok</b>
<br><b><Cyberwolf></b> damn, i gotta go, plz send me the logs at: cyberwolf@urgent-urgent-urgent.com
<br><b><Serial_Killer></b> hehe
<br><b><Cyberwolf></b> bye all
<br><font color="#FF0000">*** Cyberwolf has quit IRC (Quit: Life without
risk is no life at all)</font>
<br><b><AZTEK> i will cyberwolf</b>
<br><b><Serial_Killer></b> too late
<br><b><_medved-></b> where am I?
<br><b><AZTEK> now as most programmers know usully the first thing you
learn to do is output the text Hello, World</b>
<br><b><AZTEK> iNPROV php lecture</b>
<br><b><AZTEK> so here is the line that would do this</b>
<br><b><AZTEK> <?php</b>
<br><b><AZTEK> echo "hello world";</b>
<br><b><AZTEK> ?></b>
<br><b><AZTEK> as i have said the <?php tells the engin to start
executing the code after it</b>
<br><b><AZTEK> the echo command simply outputs the text to the screen</b>
<br><b><AZTEK> every stament as in other anguages is ended with a ;
(simicoln)</b>
<br><b><AZTEK> the the code is ended with a ?></b>
<br><b><AZTEK> to tell the engin to stop executing</b>
<br><b><AZTEK> everyone following along</b>
<br><font color="#FF0000">*** DockAlfer is now known as DockAl[shower]</font>
<br><b><Serial_Killer></b> yeahh
<br><b><FatalCure></b> uh huh
<br><b><AZTEK> no seriously if you arnt tell me</b>
<br><b><AZTEK> i will go back</b>
<br><b><AZTEK></b> can anyone tell me the difference between php and
perl
<br><b><HardW1r3></b> ive heard that it is better somehow but im not
sure how
<br><b><HardW1r3></b> i dunno
<br><font color="#FF0000">*** bomb8595 has joined #bsrf</font>
<br><font color="#FF0000">*** GhostDog has quit IRC (Quit: The surest sign
that intelligent life exists elsewhere in the universe is that it has neve)</font>
<br><b><HardW1r3></b> hey bomb
<br><b><AZTEK></b> perl is better in the sence it has been around longer
and has more librarys
<br><b><bomb8595></b> hi
<br><b><HardW1r3></b> ah
<br><b><HardW1r3></b> k
<br><b><FatalCure></b> perls engine is started by #!/usr/bin perl
<br><font color="#FF0000">*** Mikkkeee has joined #bsrf</font>
<br><font color="#FF0000">*** ChanServ sets mode: +o Mikkkeee</font>
<br><b><HardW1r3></b> hey mikkkeee
<br><b><AZTEK> php on the other hand is faster(in some retrospect),
and is easyer to insert into html</b>
<br><b><AZTEK> hi mikkkeee</b>
<br><b><Paya></b> hi mikkkeee
<br><b><Serial_Killer></b> AZTEK what u think which one is better
<br><b><Serial_Killer></b> ?
<br><b><Mikkkeee></b> hey guys
<br><b><AZTEK> i personally like php better</b>
<br><b><Serial_Killer></b> any reasons for that
<br><b><AZTEK> it is easy to learn and was specifficly desinged for
cgi work</b>
<br><b><Serial_Killer></b> o.k
<br><b><AZTEK> while perl was designed for exracting and listing text
files</b>
<br><b><AZTEK> quote the name pratical extraction and reporting language</b>
<br><b><Mikkkeee></b> yahoooooooooooo a php lecture
<br><b><AZTEK> but dont let php fool you it is extreamly prowerful</b>
<br><b><Mikkkeee></b> want to make it a real one aztek?
<br><b><Paya></b> yes, sure
<br><b><Mikkkeee></b> k
<br><b><AZTEK></b> its best advantage is its ability to interacte with
databasses
<br><b><AZTEK></b> sure
<br><font color="#FF0000">*** Mikkkeee sets mode: +m</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Balle[away]</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v bomb8595</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Casper[WORK]</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v chiken</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Crash_Gnome</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v EliteLamer</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v FatalCure</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Grendel</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v DockAl[shower]</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v HardW1r3</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Kage</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Liquid</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v marie</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v Serial_Killer</font>
<br><font color="#FF0000">*** Paya sets mode: +v _medved-</font>
<br><font color="#FF0000">*** BootError has joined #Bsrf</font>
<br><font color="#FF0000">*** Paya sets mode: +v _MikeStevens-</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +v BootError</font>
<br><font color="#FF0000">*** Mikkkeee sets mode: +o AZTEK</font>
<br><b><AZTEK> php4 now has built in mysql capability</b>
<br><b><bomb8595></b> mikkkee: meeting?
<br><b><Mikkkeee></b> aztek hold a bit
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -