⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phpl.html

📁 黑客培训教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<br><b>&lt;Mikkkeee></b> okay lets start

<br><b>&lt;AZTEK> to make a short list php can interact with orcale,mysqu,msql,mssql,access,and

many more dtabasses</b>

<br><b>&lt;Mikkkeee></b> ______&nbsp; _______&nbsp; ______ _______

<br><b>&lt;Mikkkeee></b> |_____] |______ |_____/ |______

<br><b>&lt;Mikkkeee></b> |_____] ______| |&nbsp;&nbsp;&nbsp; \_ |

<br><b>&lt;Mikkkeee></b>

<br><b>&lt;Mikkkeee></b> okay php lecture time

<br><b>&lt;Mikkkeee></b> lecturer=AZTEK

<br><b>&lt;BootError></b> Woot!

<br><b>&lt;HardW1r3></b> go aztek go

<br><font color="#FF0000">* BootError boos</font>

<br><b><font color="#000000">&lt;AZTEK> thanx</font></b>

<br><b>&lt;BootError></b> No problemo

<br><b>&lt;Serial_Killer></b> np

<br><b>&lt;BootError></b> :))

<br><b>&lt;Mikkkeee></b> its all yours

<br><b>&lt;AZTEK> now anyone with any programming know how knows that programs

are no good without variables</b>

<br><b>&lt;AZTEK> well php uses the $ (us dollar) sign to decalre a variable</b>

<br><font color="#FF0000">* Balle[away] 0,12 Away 0,1 Balle 15is not here

11(0Im sleeping.. goddamit..11) (022:09:38 11)</font>

<br><b>&lt;Paya></b> like in Perl

<br><b>&lt;AZTEK> yes like in perl</b>

<br><b>&lt;AZTEK> but php does it little different</b>

<br><b>&lt;AZTEK> for an array</b>

<br><b>&lt;AZTEK> perl would use the @ sign</b>

<br><b>&lt;AZTEK> well in php their is no special sign</b>

<br><b>&lt;Paya></b> ?

<br><b>&lt;AZTEK> an array is defined as $hello[0]</b>

<br><b>&lt;AZTEK> as wih in perl it would be @hello</b>

<br><b>&lt;AZTEK> php like perl defines the variable type for you</b>

<br><b>&lt;FatalCure></b> so an array in php is deffined the same way a

variable would be in perl, as in $hello["1", "2", "3"]

<br><b>&lt;Mikkkeee></b> is it?

<br><b>&lt;AZTEK> so you dont have to define a variable as a interger or

a string explictly</b>

<br><b>&lt;BootError></b> kool

<br><b>&lt;FatalCure></b> aahhh

<br><b>&lt;Mikkkeee></b> k

<br><b>&lt;AZTEK> no in php you cant define multiple cells at once</b>

<br><b>&lt;AZTEK> as far as i know</b>

<br><b>&lt;AZTEK> so like $hello[0]="Hello"</b>

<br><b>&lt;AZTEK> $hello[1]=12</b>

<br><b>&lt;Paya></b> how do u mean "can't define multiple cells", then

PHP is a crap

<br><b>&lt;AZTEK> and $hello[2]="12" all work</b>

<br><b>&lt;AZTEK> its a downfall</b>

<br><b>&lt;AZTEK> you can define multiple cells</b>

<br><b>&lt;AZTEK> just not at once</b>

<br><b>&lt;Paya></b> great

<br><b>&lt;AZTEK> not like you had it</b>

<br><b>&lt;Mikkkeee></b> hey aztek if u got time at the end, get out some

precoded scripts and explain the code in each?

<br><b>&lt;AZTEK> ok</b>

<br><b>&lt;AZTEK> like the one for you</b>

<br><font color="#FF0000">*** bomb8595 has quit IRC (Quit: )</font>

<br><b>&lt;AZTEK> so</b>

<br><font color="#FF0000">*** bomb8595 has joined #bsrf</font>

<br><font color="#FF0000">*** DockAl[shower] is now known as DockAlfer</font>

<br><b>&lt;AZTEK> &lt;?php</b>

<br><b>&lt;AZTEK> $hello="Hello";</b>

<br><b>&lt;AZTEK> echo $hello;</b>

<br><b>&lt;AZTEK> ?></b>

<br><b>&lt;AZTEK> gives us Hello</b>

<br><b>&lt;AZTEK> out to the screen</b>

<br><b>&lt;BootError></b> PHP reminds me of C, DOS batch file programing

and Basic

<br><font color="#FF0000">*** MANOWAR^ has joined #bsrf</font>

<br><b>&lt;AZTEK> exactly</b>

<br><b>&lt;AZTEK> now has anyone had any past experiance with Java,Javascript,C/C++</b>

<br><font color="#FF0000">*** Mikkkeee sets mode: +v bomb8595</font>

<br><b>&lt;AZTEK> Javascript is especially good</b>

<br><font color="#FF0000">* BootError has</font>

<br><font color="#FF0000">*** Mikkkeee sets mode: +v MrJezus|Gaming</font>

<br><font color="#FF0000">*** Mikkkeee sets mode: +v MANOWAR^</font>

<br><b>&lt;Paya></b> me, with C/C++

<br><b>&lt;AZTEK> good</b>

<br><font color="#FF0000">*** chiken has quit IRC (Quit: If I told you

I was lieing, would you believe me?)</font>

<br><b>&lt;MANOWAR^></b> -v plz

<br><b>&lt;Paya></b> Perl...

<br><font color="#FF0000">*** Mikkkeee sets mode: -v MANOWAR^</font>

<br><b>&lt;BootError></b> BASIC and C

<br><b>&lt;AZTEK> because as you will notice the syntax looks alot like

C/C++,Javascript,Java</b>

<br><b>&lt;AZTEK> and perl</b>

<br><b>&lt;Paya></b> hehe

<br><b>&lt;AZTEK> if your server uses Apache (almost everyone does) their

are predefined variables you can work with</b>

<br><b>&lt;AZTEK> like $REMOTE_ADDR will give you the clients ip address</b>

<br><b>&lt;Mikkkeee></b> back to the lecture plz

<br><b>&lt;AZTEK></b> yes it has to be caps

<br><b>&lt;Paya></b> u mean %ENV arrays

<br><font color="#FF0000">*** DreaMeR has joined #bsrf</font>

<br><b>&lt;AZTEK> yes the same thing</b>

<br><b>&lt;AZTEK> as it is in perl</b>

<br><b>&lt;Paya></b> $QUEARY_STRING...

<br><b>&lt;Paya></b> *$QUERY

<br><b>&lt;AZTEK> now to output a variable in php</b>

<br><b>&lt;AZTEK> same thing</b>

<br><font color="#FF0000">*** Canticle has joined #bsrf</font>

<br><b>&lt;AZTEK> you can use the echo command</b>

<br><font color="#FF0000">*** IriSh-IrO has joined #bsrf</font>

<br><font color="#FF0000">*** IriSh-IrO has quit IRC (Client exited)</font>

<br><b>&lt;AZTEK> so echo $hello;</b>

<br><b>&lt;AZTEK> would out put the the contents of $hello</b>

<br><font color="#FF0000">*** _newbie- has joined #bsrf</font>

<br><b>&lt;AZTEK> you can also use variable in strings</b>

<br><b>&lt;AZTEK> like in $hello="Hello, $world";</b>

<br><b>&lt;Paya></b> like in Perl print "Your age is: $age\n";

<br><b>&lt;AZTEK> the string would consist of the words Hello, and whatever

is in the variable $world</b>

<br><b>&lt;AZTEK> yes</b>

<br><b>&lt;AZTEK> thanks Paya</b>

<br><font color="#FF0000">*** Paya sets mode: +v _newbie-</font>

<br><b>&lt;AZTEK> now a thing that makes php great and gives it an advantage

over perl is</b>

<br><b>&lt;AZTEK> the valuse passed to your php script</b>

<br><b>&lt;AZTEK> via an html from are made into variable themselves imdiatly</b>

<br><b>&lt;_newbie-></b> does IIS support php?

<br><b>&lt;_newbie-></b> i mean, is there a plugin

<br><b>&lt;AZTEK> so &lt;input type="text" name="hi"></b>

<br><b>&lt;AZTEK> yes it does</b>

<br><b>&lt;_newbie-></b> ah ok

<br><b>&lt;Mikkkeee></b> aztek will u got into db's?

<br><b>&lt;_newbie-></b> continue, i wanna learn php too hehe

<br><b>&lt;AZTEK> when sent to your programm the variable $hi will have

the value of that text fiels</b>

<br><b>&lt;AZTEK> *field</b>

<br><b>&lt;AZTEK> not today</b>

<br><b>&lt;AZTEK> maybe in a follow up tut</b>

<br><b>&lt;Mikkkeee></b> yup

<br><b>&lt;_newbie-></b> ok

<br><b>&lt;AZTEK> does everyone understand the basics of php variable</b>

<br><b>&lt;Paya></b> yes, continue

<br><b>&lt;_newbie-></b> yep

<br><b>&lt;FatalCure></b> uh huh]

<br><b>&lt;AZTEK> now another thing a script/programm can not be without

is flow control</b>

<br><b>&lt;AZTEK> the ifs, elseifs, and elses</b>

<br><b>&lt;marie></b> No, but it's alright. I need to go, goodbye.

<br><font color="#FF0000">*** marie has quit IRC (Quit: )</font>

<br><b>&lt;AZTEK> a if statment is the exact same as if it were in a C

programm</b>

<br><b>&lt;AZTEK> the syntax for a if stament is</b>

<br><b>&lt;AZTEK> if (condention) {</b>

<br><b>&lt;AZTEK> BLOCK of code;</b>

<br><b>&lt;AZTEK> }</b>

<br><b>&lt;AZTEK> if the condention exicutes to be true then the code inside

the brakets is executed</b>

<br><b>&lt;AZTEK> example</b>

<br><font color="#FF0000">*** _newbie- has left #bsrf</font>

<br><font color="#FF0000">*** DreaMeR has quit IRC (Client exited)</font>

<br><b>&lt;AZTEK> if($hello="Hi") {</b>

<br><b>&lt;AZTEK> echo $hello;</b>

<br><b>&lt;AZTEK> }</b>

<br><font color="#FF0000">*** vanished has joined #BSRF</font>

<br><b>&lt;FatalCure></b> can you set a verable to recive keystrokes and

then use that in an if statment?like STDIN w/ perl?

<br><font color="#FF0000">*** Mikkkeee sets mode: +v vanished</font>

<br><b>&lt;AZTEK></b> you can add ifelse to

<br><b>&lt;AZTEK></b> no

<br><b>&lt;vanished></b> thanks

<br><b>&lt;AZTEK> php is strictly a cgi language</b>

<br><b>&lt;AZTEK> ell not anymore but i will get to that later</b>

<br><b>&lt;AZTEK> so</b>

<br><b>&lt;AZTEK> if($hello="Hi") {</b>

<br><b>&lt;AZTEK> echo $hello;</b>

<br><b>&lt;AZTEK> } else {</b>

<br><b>&lt;AZTEK> echo "No Hello";</b>

<br><b>&lt;AZTEK> }</b>

<br><b>&lt;AZTEK> is an example of flow control</b>

<br><b>&lt;AZTEK> if the value of th variable $hello is not the string

Hi the the code in the else stament is executed</b>

<br><b>&lt;AZTEK> everyone got this so far</b>

<br><b>&lt;vanished></b> ya

<br><font color="#FF0000">*** Paya sets mode: +v Canticle</font>

<br><b>&lt;HardW1r3></b> yup

<br><b>&lt;AZTEK> you can have as many ifs anf ifelses as you need but

you can only have one else</b>

<br><b>&lt;AZTEK> or the engin will get confused</b>

<br><b>&lt;Canticle></b> ya.. when php code runs is it something like mod_perl?

Im a php newbie but Ive used mod_perl and perl

<br><font color="#FF0000">*** Kazzuyo has joined #bsrf</font>

<br><b>&lt;AZTEK> now i will go onto loops so those of you who don't understand

please speak up</b>

<br><font color="#FF0000">*** Mikkkeee sets mode: +v Kazzuyo</font>

<br><b>&lt;Kazzuyo></b> hi

<br><b>&lt;AZTEK> it can be a module in apache or an external program that

parsses the script and returns it</b>

<br><b>&lt;Kazzuyo></b> brb

<br><b>&lt;Canticle></b> so like perl?

<br><font color="#FF0000">*** Kazzuyo has left #bsrf</font>

<br><b>&lt;AZTEK> yes</b>

<br><font color="#FF0000">*** wishmaster has joined #bsrf</font>

<br><font color="#FF0000">*** ChanServ sets mode: +v wishmaster</font>

<br><b>&lt;Canticle></b> thanks

<br><b>&lt;wishmaster></b> yo all

<br><b>&lt;wishmaster></b> wasssup guys>?

<br><b>&lt;AZTEK> only the program or module has to be defined in the apache

conf files</b>

<br><b>&lt;Paya></b> we're in the middle of the lecture

<br><b>&lt;AZTEK> unless you wan to add #!/usr/bin/php</b>

<br><font color="#FF0000">*** Kazzuyo has joined #bsrf</font>

<br><font color="#FF0000">* Canticle nods</font>

<br><font color="#FF0000">*** _052_ has quit IRC (Ping timeout)</font>

<br><b>&lt;AZTEK> or whatever you php executalbe is and make it like perl</b>

<br><b>&lt;AZTEK> which is not recomended</b>

<br><b>&lt;AZTEK> the for loop</b>

<br><b>&lt;Mikkkeee></b> yo wish its a php lecture

<br><font color="#FF0000">*** Mikkkeee sets mode: +v Kazzuyo</font>

<br><b>&lt;AZTEK> anyone with a C/C++,Java(script) background know theis

next few</b>

<br><b>&lt;AZTEK> the for loop follows the syntax</b>

<br><b>&lt;_medved-></b> YO to wishmaster

<br><b>&lt;Mikkkeee></b> heh

<br><font color="#FF0000">*** Paya sets mode: -v _medved-</font>

<br><b>&lt;vanished></b> ya

<br><b>&lt;AZTEK> for (starting variable ; lopp unstill this is false ;

the increcment) {</b>

<br><b>&lt;AZTEK> }</b>

<br><b>&lt;vanished></b> for (i=0; i&lt;10; i++)

<br><b>&lt;Kazzuyo></b> cool.....

<br><b>&lt;AZTEK> theis are very good for arrays</b>

<br><b>&lt;Paya></b> just like in Perl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -