Start of #ChatSHACK buffer: Fri Aug 02 22:59:48 2002 [22:03] *** Now talking in #ChatSHACK [22:03] *** Topic is 'Happy August! It's 4Friday @ the 07You06th Tech #ChatSHACK [ yt blog: 12http://www.ytmeets.com/blog ] - PHP Class!' [22:03] *** Set by YTCCSpark on Fri Aug 02 22:01:11 [22:03] -YTCCSpark- [Welcome-#ChatSHACK] Welcome to Youth Tech's #ChatSHACK! Please make sure you have read our Community Standards. [22:03] *** youthtech.chat.server sets mode: +o YTCCSpark [22:03] wb [22:03] <@YTCCSpark> ok. [22:04] YAY!! [22:04] Woo! PHP Class :) [22:04] <@YTCCSpark> :) [22:04] stats [22:04] * k[zombie] taps foot [22:04] stats? [22:04] ... [22:04] where is your bot, mikev. [22:04] !! [22:04] HE ISNT HERE [22:04] ytstats.dyndns.org [22:04] MAKE HIM RETURN [22:04] !! [22:04] type http, shan ;p [22:04] http://ytstats.dyndns.org [22:04] http://ytstats.dyndns.org [22:04] we're lazy [22:04] sorry [22:04] there we go [22:04] <@YTCCSpark> For anyone who missed it, class was cancelled/postponed last week because about half the students were at the YTMeet [22:04] i wanted to lcick ;x [22:04] lol [22:04] IM STILL WINNING [22:05] * cailee yawns [22:05] lcick? [22:05] well guys [22:05] <@YTCCSpark> This weeks lesson is on INPUT! [22:05] OH [22:05] OK I NEED TO TYPE IN CAPS MORE BECAUSE SOMEONE HAS STOLEN MY PLACE [22:05] click :o [22:05] IN THE CAPS THING [22:05] woo! input :) [22:05] ON THE WEBPAGE [22:05] im cutting class [22:05] WHO HAS STOLEN YOUR PLACE [22:05] LACEY HAS [22:05] dont tellthe teacher [22:05] wow look at that i'm at the top of the NICKS LIST [22:05] :O [22:05] SHE TYPED IN CAPS MORE [22:05] ;O [22:05] SO TYPE IN CAPS [22:06] WHATS WRONG WITH YOU [22:06] <@YTCCSpark> 4Can I ask people to stop with the caps :) [22:06] er [22:06] sorry [22:06] YOU SUCK JUSTIN [22:06] <@YTCCSpark> it's ok [22:06] * cailee smiles oh so innocently :) [22:06] KIM. [22:06] you are using random names [22:06] <@YTCCSpark> Any questions from previous lessons? [22:06] I LOWERED THEM [22:06] SoRrY. [22:06] !!! [22:06] MIKEV [22:06] Nope ;) [22:06] ::snicker:: [22:06] Nope David.. :) [22:06] ::shakeshead:: [22:06] <@YTCCSpark> Yay! [22:06] you all have a great night!!!! :) [22:06] BYE LEE [22:06] i'm off for all ngiht at wild river country [22:06] er [22:06] lol [22:06] are you cutting class too lee? [22:06] :) [22:06] sorry ;x [22:06] night lee [22:06] shan. meet me over there >>> [22:06] >>>> ? [22:06] oh [22:06] i don't have class ;) [22:06] Ialways cut class. [22:06] heheheh [22:06] Bye lee ;) [22:06] yes. >>> [22:06] later :) [22:06] *** PDAGeek (Server@XXXXX.shklfd01.ar.comcast.net) Quit (The greatest thing you'll ever learn is just to love and be loved in return.) [22:07] <@YTCCSpark> Ok, PHP would not be very useful if the user couldn't interact with your script, right? [22:07] right [22:07] <@YTCCSpark> Does everyone taking this class know HTML Forms? [22:07] <- [22:07] i know way too much about HTML. [22:07] the end. [22:07] I do :) [22:07] lol [22:07] <@YTCCSpark> ok, good [22:07] <@YTCCSpark> Suppose you have the form: [22:08] * Justin joins #TechChat and holds a conversation with SVCAGENT-934826847, who is really there, but invisible. [22:08] <@YTCCSpark>
[22:08] ! [22:08] haha i just laughed outloud [22:08] *** scott (scott@192.204.191.999) has joined #ChatSHACK [22:08] I stalked justin [22:08] SCOTT [22:08] when? :o [22:08] HELLO [22:08] * cailee kills scott [22:08] right now [22:08] there [22:08] ::points to techchat [22:08] your zombified with kimmy :o [22:08] hi ;) [22:08] yes :( [22:09] * me grumbles [22:09] you told me to kill you. [22:09] so husha. ;P [22:09] kim, how are you in techchat [22:09] <@YTCCSpark> If someone puts in their NAME in the form and submits it, the variable $NAME is set to whatever they put in to the form. [22:09] <@YTCCSpark> Questions? [22:09] nope [22:09] what happened to the game [22:09] Nope [22:09] i won it scott [22:09] nope [22:09] thats because i cant play [22:10] why cant' you play? [22:10] scott? i just joined it? [22:10] <@YTCCSpark> good. [22:10] <@YTCCSpark> This works with all parts of forms. [22:11] ouch. [22:11] :( [22:12] * MikeV raises hand [22:12] <@YTCCSpark> yes, Mike? [22:12] "can i use the bathroom?" [22:12] :X [22:12] LOL [22:12] Dunno if I'm jumping ahead or not.. [22:12] ! [22:12] how are checkboxes and radio buttons handled? [22:12] THAT is raising your hand, MikeV. [22:12] YOU SHOULD KNOW THAT [22:12] !! [22:12] kim. I don't know how they are handled in PHP, which is why I'm here. [22:13] to LEARN about it. [22:13] <@YTCCSpark> well, Radio Buttons are quite simple. if you have then $A will equal 1 or 2, depending on which is selected. [22:14] No, mike.. [22:14] lol i was saying that hte "!" was raising your hand :x [22:14] like.. in protocol :p [22:14] :P [22:14] <@YTCCSpark> Checkboxes are slightly more complex... I probably should've introduced Arrays first. [22:15] Well, we can hold out on that until later then. Drop-down boxes are similar to radio buttons, I assume. [22:15] <@YTCCSpark> Yes, as long as you don't have the MULTIPLE keyword :) [22:15] <@YTCCSpark> in which case they're like check boxes. [22:15] Ok. :) [22:16] <@YTCCSpark> any other questions? [22:16] <@YTCCSpark> (anyone) [22:16] none here [22:16] <@YTCCSpark> excellent. [22:17] <@YTCCSpark> Let's assume you want to provide "options" to a PHP Script Directly... [22:17] <@YTCCSpark> I'm sure you all have seen urls like script.php?name=Spark&food =pizza [22:17] <@YTCCSpark> any guesses on how PHP handles that? [22:18] 3? [22:18] *** k[zombie] is now known as k [22:18] err [22:18] <@YTCCSpark> anyone? [22:18] it looks for the type and category? [22:18] $name would be Spark, and $food would be pizza [22:18] * @YTCCSpark applauds [22:18] <@YTCCSpark> correct. [22:19] <@YTCCSpark> any questions? [22:19] the ? tells it that form information follows... [22:19] and the & separates multiple variables. [22:19] <@YTCCSpark> yeah [22:20] ok mike just answered my question [22:20] <@YTCCSpark> just as an FYI, let's assume you have toppings.php?pepperoni [22:20] <@YTCCSpark> there's a special variable that lets you get pepperoni [22:20] <@YTCCSpark> it's called $QUERY_STRING [22:20] <@YTCCSpark> in the earlier example, $QUERY_STRING would contain name=Spark&food=pizza [22:21] <@YTCCSpark> in other words, it contains everything after the ? [22:23] *** Kirbobreon (Greg@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:23] *** Justin (laptop@XXXXX.ipt.aol.com) has left #ChatSHACK [22:24] <@YTCCSpark> On a little aside, if you want to know EVERYTHING about the server's configuration, create a page that contains: [22:24] <@YTCCSpark> [22:24] <@YTCCSpark> and visit it with your browser [22:25] <@YTCCSpark> much of those things can be used as variables from PHP. If you want to know specifics, feel free to ask. [22:25] * @YTCCSpark pauses for a moment [22:25] <@YTCCSpark> Who's lost? [22:25] *** Pookie (Orangutany@XXXXX.summit01.nj.comcast.net) has joined #ChatSHACK [22:25] wheeeeeeeeee [22:25] Not me.. but could you provide an example of a possible use of any of the server variables? :) [22:25] I did that before it's kewl ;) [22:26] not that I understand much of it but I try [22:26] <@YTCCSpark> well, you could log IP address of people going to a website, with $REMOTE_ADDR [22:26] *** ge0 (ge0@XXXXX.ne.client2.attbi.com) Quit (ge0) [22:26] oo.. yeah, that's a common use.. [22:27] I didn't realize that that's good to know [22:27] <@YTCCSpark> that's a big one [22:27] *** crystal (java@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:27] hey all [22:27] heya crystal [22:27] 6,0wuts the topic of the night [22:27] <@YTCCSpark> also, some of that information could be used to hack your server, so it's advised you don't PUBLICIZE the page that contains it. [22:27] <@YTCCSpark> Hi crystal [22:27] <@YTCCSpark> I'm teaching the PHP Class. [22:27] 6,0yo [22:27] 6,0interesting [22:28] yo yo [22:28] heya Jen ;) [22:28] it could how is that? [22:29] <@YTCCSpark> Becky - you asking about the hacking? [22:29] *** k is now known as k[le_w_c] [22:29] well no I wasn't asking how to hack [22:29] but umm well nevermind [22:29] I was just curious what they could find out? [22:29] 6,0everything [22:30] <@YTCCSpark> Ok :) Let's just say it tells someone EVERYTHING about your server. [22:30] Ok I understand ;) [22:30] 6,0 anything u ever typed in a computer [22:30] <@YTCCSpark> The version of your software, your IP address, the path to the script being run, the path to apache, etc. [22:31] yeah I understand what you mean now I see how that could be not such a good thing ;) [22:31] <@YTCCSpark> yah [22:31] 6,0yea thats y i wouldn't trust buying things with a card on the net [22:31] <@YTCCSpark> don't give hackers more information than you have to [22:32] yeah prolly a good idea [22:32] <@YTCCSpark> crystal - it's perfectly safe to buy things online with reputable vendors [22:33] 6,0i guess so but if a hacker gets into ur cookies, that wouldn't be good [22:33] <@YTCCSpark> if a hacker gets that far, your whole system is compromised. [22:33] cookies don't normally contain that kind of information anyway [22:33] <@YTCCSpark> and NO smart webdesigner puts a credit card number in a database, in a cookie, or anything else like that [22:33] *** n (n@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:33] hey nikk [22:34] wb nikk ;) [22:34] 6,0well i still am not trusting a card to the net [22:34] *** cailee is now known as ck[tetri] [22:34] wow [22:34] thankss [22:34] tetrinet!? [22:34] *** Pookie (Orangutany@XXXXX.summit01.nj.comcast.net) Quit (Connection reset by peer (TCP/IP connection broken)) [22:34] <@YTCCSpark> well, I guess that's your call [22:34] I haven't heard that in a long time [22:34] <@YTCCSpark> now, back to my class [22:34] Anyway... :) [22:34] <@YTCCSpark> any questions? [22:34] Not now ;) [22:34] None here for now :) [22:35] <@YTCCSpark> excellent. [22:35] o.O [22:35] I don't know what Alex is listening to.. [22:35] but it's scary sounding o.O [22:35] <@YTCCSpark> Quick poll, who is actually following the class? [22:35] meee! :) [22:35] me [22:35] 6,0um i jus got here [22:35] and I believe robbie was [22:35] yeah, i havent been to the last few lessons [22:35] 6,0but im following vaguely [22:36] so i am lost ;x [22:36] 6,0haha, that's ok [22:36] sorry :/ [22:36] Cailee, you can catch up on the web site :) [22:36] yeah [22:36] *** Justin (laptop@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:36] huh [22:36] * ck[tetri] always wondered about php ;x [22:36] JUSTIN [22:36] http://www.youthtech.com/codem/PHPClass/ [22:36] CAILEE [22:36] <@YTCCSpark> Yeah, I knew there was a reason I post transcripts :) [22:36] lol :) [22:37] <@YTCCSpark> I think I'm gonna switch lessons 6 and 7. [22:37] *** Justin (laptop@XXXXX.ipt.aol.com) Quit (-) [22:37] *** Justin (laptop@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:37] <@YTCCSpark> That way I can get to MikeV's question first. [22:37] <@YTCCSpark> well, earlier [22:39] <@YTCCSpark> And if anyone cares, yes, this knowledge can earn you money. I just got hired to do webdesign for a new company called Oasis Networks :) [22:39] shaun said he would catch up next week by reading the site btw ;) [22:39] he's on vacation [22:40] Really? That's awesome ;) [22:40] 6,0koolies [22:40] And I would imagine lots of sites could use someone with those kind of skills [22:40] I have a question :) [22:40] <@YTCCSpark> Yes, Mike? [22:40] For forms, there are 2 methods, post and get... is there a difference in the way PHP handles those? [22:41] I know one goes into the URL and the other doesn't... [22:41] <@YTCCSpark> Not really. If you use get, it will be visible like index.php?somevar=someval [22:41] but beyond that.. [22:41] <@YTCCSpark> and with GET, the size is somewhat limited [22:42] <@YTCCSpark> if you want to do file uploads or anything like that (NOT covered today, covered later) you MUST use POST [22:42] .com bomb [22:42] woo [22:42] *** k[le_w_c] is now known as k[waxy] [22:42] *** crystal (java@XXXXX.ipt.aol.com) Quit (Web Browser left the chat web page) [22:43] Right.. because with GET, it becomes part of the URL, and you're limited to browser or server limits on request length [22:43] * @YTCCSpark nods [22:43] while POST it actually sends the data and gets a result page. [22:43] <@YTCCSpark> :) [22:44] I was just checking to see if there was any difference in how PHP handles them :) [22:44] <@YTCCSpark> nope, still $variable = value [22:44] Would a form submitted using POST still have a $QUERY_STRING? [22:45] continuum transfunctioner [22:45] <@YTCCSpark> MikeV $QUERY_STRING = ""; [22:46] That's what I thought. Again, just checking :) [22:46] <@YTCCSpark> yep [22:46] <@YTCCSpark> theoretically, you can combine the two :) [22:47] Well yeah, ya could.. in your form ACTION you could put some variables there, but have the method be POST... [22:47] <@YTCCSpark>
[22:47] <@YTCCSpark> right [22:47] <@YTCCSpark> but I'm not 100% sure how well that works... never tested it. [22:47] <@YTCCSpark> anyone wanna try it and report back? [22:47] *** n (n@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:48] I'll try.. dunno how well I'll do, but I'll try :) [22:48] <@YTCCSpark> hehe, ok [22:48] im gonna go and go to bed guys [22:48] night [22:48] nite justin ;) [22:48] *** Justin (laptop@XXXXX.ipt.aol.com) Quit (-) [22:48] <@YTCCSpark> just do: [22:49] <@YTCCSpark> then ", $SUBMIT; ?> [22:49] *** MikeM is now known as MikeM[work] [22:49] <@YTCCSpark> or something like that [22:49] <@YTCCSpark> at this point, I'm gonna check for any PHP-related questions. Anyone? [22:49] yes [22:49] What's PHP? [22:50] <@YTCCSpark> are you serious? [22:50] *** n (n@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:50] I wouldn't ask if I wasn't [22:50] well..i might, but I'm serious this time [22:50] :P [22:50] Mike, http://www.youthtech.com/codem/PHPClass [22:51] Go there and ya can learn what it is, and get brought up to speed on where we are :) [22:51] <@YTCCSpark> thank you for helping Mike, Mike [22:51] *** n (n@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:51] gotta goto work [22:51] later :P [22:52] <@YTCCSpark> cya [22:52] *** shannon is now known as shan[sleep] [22:52] im ditching class early [22:53] <@YTCCSpark> bye :) [22:53] <@YTCCSpark> It's pretty much over anyway. [22:53] GOOD NIGHT SHANNON [22:53] SLEEP WELL HONEY <3 [22:54] *** ge0 (ge0@XXXXX.ne.client2.attbi.com) has joined #ChatSHACK [22:54] ahck hiss grrrr meow [22:54] ? [22:54] ADAM TICKLED ME CAUSE HE STEPPED ON MY FOOT [22:54] is this fair? [22:54] i think NOT [22:55] *** abby (ytmirc@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:55] adam, are you talking to yourself? [22:55] I was wondering the same thing [22:55] no scott... i'm not [22:55] *** ge0 is now known as Libbs [22:55] lol [22:55] i thought that might be you [22:55] Hi Libbs!!! :D [22:55] *** Libbs is now known as ge0 [22:55] HELLO LIBBIE [22:55] <@YTCCSpark> At this point, my chat is kinda over, unless there are any questions? [22:55] hello boys and girls... [22:56] Nope I don't have any [22:56] Nope David.. no other questions here for now :) [22:56] Thank You david ;) [22:56] I'll try that "mixed mode" form and let ya know how it works [22:56] ... adam's new subwoofer is the size of a 12 inch tv [22:56] Adam got a 12" :O [22:56] :O [22:56] ok [22:56] yanno [22:56] *** abby (ytmirc@XXXXX.ipt.aol.com) Quit (shut your mouth, burn your bridges. if i told you this was killing me, would you stop? // the juliana theory) [22:56] that's a BAD line to look back to [22:56] BAD [22:56] BAD BAD [22:56] HK-595 [22:57] was on sale at microcenter [22:57] for your car or your computer? :P [22:57] computer [22:58] ooh lookie... they work... [22:58] it's starts with ONE THING... [22:58] * ge0 dances around head banging [22:58] heh [22:58] find a wireless card? :) [22:58] he didn't get the one you said to get [22:58] cause they didn't have one [22:58] psh [22:58] he got a dlink [22:59] dunno about the linux driver for it, but it should work under linux... [22:59] for at least basic functionality [22:59] dunno about kismet [22:59] though [22:59] I know for fact that it won't work under windows with netstumbler End of #ChatSHACK buffer Fri Aug 02 22:59:48 2002