Start of #ChatSHACK buffer: Fri Jul 19 22:59:30 2002 [22:03] *** Now talking in #ChatSHACK [22:03] *** Topic is 'It IS Friday!!! @ the 07You06th Tech #ChatSHACK!' [22:03] *** Set by SVCAGENT-934826847 on Fri Jul 19 17:31:37 [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] what about DIShonorable mention rob? [22:03] YIELD! [22:03] hehe [22:03] <@YTCCData> 12now stick around for YTCC Spark's PHP Class! [22:03] * MikeV beats shaun with stale french bread :P [22:03] ....? [22:03] STOP! GO! STOP! GO! [22:03] 4PHP Class Every Friday Night, 10:00 PM EST [22:03] 4See http://www.youthtech.com/codem/PHPClass for details! [22:03] OUCH! [22:03] :P [22:03] * @YTCCData tosses the keys to Spark [22:03] * @YTCCSpark catches them [22:03] <@YTCCSpark> thanks Data [22:03] *** YTCCData sets mode: -o YTCCData [22:03] keys? [22:03] *** YTCCData is now known as Robbie [22:03] wow [22:03] i never got any keys :o [22:03] * Shaun pays MikeV not to say anything [22:03] 12:-) [22:03] I didn't realize it's Friday [22:03] * Kirbobreon hounds rick for some keys [22:03] :P [22:03] :P [22:03] no problem [22:04] HEY you better pay me too [22:04] <@YTCCSpark> Welcome to PHP Class lesson TWO!! W00t! [22:04] [22:04] hmmmmm... what's it worth to ya shaun? :) [22:04] My pride :o [22:04] w00t!!!!!!!!! [22:04] w00t w00t! [22:04] YAY!!! [22:04] bloop!!!! :D [22:04] :P [22:04] <@YTCCSpark> First of all, does anyone have any questions from the material covered in lesson one? [22:04] bleep!!!! :P [22:04] ... I want a helicopter [22:04] VROOOOMMMMM [22:04] I'll be back after the PHP Class is over! :) [22:04] helicopters go vroom? [22:04] goodbye, MikeV. [22:04] *** informant (informant@216.40.203.999) has left #ChatSHACK [22:05] [22:05] why does informant leave during php class? :x [22:05] lol [22:05] he talks too much :) [22:05] so he doesn't interrupt the class :P [22:05] I agree :) [22:05] <@YTCCSpark> I guess not. [22:05] i thought iformant LIKED to learn [22:05] oh, lol [22:05] lol [22:05] <@YTCCSpark> No, he likes to inform. [22:05] Nope David :) No questions :) [22:05] but he has to LEARN before he can INFORM [22:05] i got you there [22:05] http://www.mikev.com/class/hello.php [22:05] :) [22:05] <@YTCCSpark> Ok, I hope everyone got a chance to glance at Lesson Two over the last week. [22:06] I missed lesson 1 ::cries:: [22:06] are there recaps for those who go on vacation [22:06] You can review it on the site, Libbs :) [22:06] ooh goodie ;) [22:06] I did ;) [22:06] <@YTCCSpark> good :) [22:06] btw, both your space and your dad's have php, so you can make a directory to hold your class files :) [22:07] <@YTCCSpark> If you didn't, Lesson Two is your introduction to Variables. [22:07] <@YTCCSpark> Variables are how the system stores data for later use, manipulation, and output. [22:07] *** MikeV changes topic to 'It IS Friday!!! @ the 07You06th Tech #ChatSHACK! [ PHP Class ]' [22:08] <@YTCCSpark> Thanks mike. [22:08] <@YTCCSpark> Now, all variables in PHP begin with a $. [22:08] *** MikeV changes topic to 'It IS Friday!!! @ the 07You06th Tech #ChatSHACK! ' [22:08] :) [22:08] <@YTCCSpark> hehe [22:08] <@YTCCSpark> In other languages, they may use % or @ or whatever, but PHP only uses $. [22:09] <@YTCCSpark> A variable is uaully composed of leters, numbers, and possibly underscores (_) [22:09] *** AlteredState (Cube@XXXXX.nycap.rr.com) Quit (AlteredState) [22:10] <@YTCCSpark> PHP likes it if you use a letter as the first character in a variable. [22:10] <@YTCCSpark> Those that begin with a _ are usually reserved for special purposes in PHP. [22:10] <@YTCCSpark> questions? [22:10] * MikeV raises hand [22:10] nope :) [22:11] <@YTCCSpark> yes Mike? [22:11] What about numbers for the first character? [22:11] <@YTCCSpark> PHP does NOT like numbers as the first character in many cases. It's best to avoid it. [22:11] ok :) [22:12] <@YTCCSpark> "A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. " <-- php.net [22:12] <@YTCCSpark> so no numbers [22:13] regexp for variable names ... \$[A-Za-z_]* ... ;) [22:13] * Ge0[book] goes back to nothingness [22:13] <@YTCCSpark> actually, if you want to make it complicated: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* [22:13] <@YTCCSpark> but everyone else ignore that [22:14] <@YTCCSpark> Variables ARE case sensitive... in other words, $PIZZA and $pizza are not the same. [22:14] -Ge0[book]- and what are the hex ranges? [22:14] even with pepperoni? [22:15] <@YTCCSpark> $pepperoni_pizza would also work [22:15] lol [22:15] <@YTCCSpark> or $pizza_with_4_toppings [22:15] David you're making me hungry :) [22:15] <@YTCCSpark> lol, sorry. [22:16] <@YTCCSpark> ok, so setting a variable is pretty simple: [22:16] mmmm, pizza :) [22:16] <@YTCCSpark> $pizza = "pepperoni"; [22:16] Variables are yummy! [22:16] $pepperoni_pizza = "good"; [22:16] <@YTCCSpark> $drink = "Mountain Dew Code Red"; [22:16] <3 code red [22:17] Is it really important to have the quotation marks David? [22:17] <@YTCCSpark> me too Becky ;) [22:17] $Vanilla_Coke = "Overrated"; [22:17] [22:17] <@YTCCSpark> Shaun - yes. [22:17] <@YTCCSpark> Anything not in quotation marks would be interpreted as an expression. [22:17] Oh, okay. I gotcha :) [22:17] <@YTCCSpark> single quotes work as well [22:17] BTJWLETJ [22:17] No shortcutting. [22:17] <@YTCCSpark> $pizza = 'pepperoni' [22:18] <@YTCCSpark> can anyone tell me what's wrong with that line? [22:18] no ; [22:18] ; [22:18] <@YTCCSpark> very good. [22:18] <@YTCCSpark> numbers are NOT enclosed in quotes. [22:18] <@YTCCSpark> so $my_age = 17; [22:19] *** scott (scott@192.204.191.999) Quit (Connection reset by peer (TCP/IP connection broken)) [22:19] <@YTCCSpark> (although technically PHP can switch types on the fly, it's best not to) [22:20] <@YTCCSpark> how about $cake_width = 10; $cake_depth = 15; $cake_height = 2; $cake_volume = $cake_width * $cake_depth * $cake_height; [22:20] I think I understand :) [22:20] <@YTCCSpark> I hope everyone knows enough math to understand that ;) [22:21] uhhh 6*9 = 42 [22:21] ;) [22:21] (that's assuming a square cake) :) [22:21] lol [22:21] (or.. non-round one) [22:21] <@YTCCSpark> hehe [22:21] what is this "math" you speak of? :P [22:21] <@YTCCSpark> Mike, would you like to know the formula for a round cake? [22:22] *** scott (scott@192.204.191.999) has joined #ChatSHACK [22:22] wb scott [22:22] I'm sure I'd remember if I really wanted to.. but that's ok :) [22:22] hi [22:22] <@YTCCSpark> $cake_volume = pi() * $cake_radius * $cake_radius * $cake height; [22:22] <@YTCCSpark> aka, PI R Squared times height [22:23] or you could.. take the area of a slice.. and use integration to find the volume ;x [22:23] what kind of cake are we baking? [22:23] <@YTCCSpark> oh, god :P [22:23] heheh [22:23] <@YTCCSpark> Becky, what's your favorite kind? [22:23] angelfood! [22:23] cheesecake, becky [22:24] but.. i'm not becky.. so.. [22:24] ooh! cheesecake [22:24] gah. [22:24] refrigerator cake [22:24] Anyway.. enough with cakes :P lets get back to learning php :P [22:24] * ashley gets fat just thinking about it.. [22:24] peanut butter pie [22:24] refridgerator cake? [22:24] <@YTCCSpark> yeah [22:24] refrigerator has no d. [22:24] in my world it has a d [22:24] you didn't put a d in it :o gbd did [22:25] oh [22:25] * ashley laughs [22:25] * me hushes now [22:25] [22:25] only if its "fridge" does it have a d [22:25] <3 becky [22:25] yes. [22:25] english sucks [22:25] * MikeV waits for David to rap peoples' knuckes with rulers :X [22:25] <@YTCCSpark> ok, outputting variables: can anyone guess how I would print out my name is Spark if $name = "Spark"? [22:25] wir sollen deutsch sprechen! ;x [22:25] knuckles* [22:25] lol Mike [22:26] print($name); [22:26] Ok im gonna have nightmares for a week [22:26] ? [22:26] parenthesis are optional, right? [22:26] i dont beleive this... a .6kb/sec download rate [22:26] <@YTCCSpark> MikeV - getting close. That would print "Spark". Try "My Name is Spark" [22:26] I'm going to go with what Mike said as well based on what you explained [22:26] <@YTCCSpark> yes, ashley. [22:26] er.. dur [22:26] .4! :o [22:27] <@YTCCSpark> ok, you have 3 options. [22:27] I still think in C++ ;x [22:27] therefore I can't remember. [22:27] <@YTCCSpark> 1) print "My name is $name"; [22:27] <@YTCCSpark> 2) echo "My name is ", $name; [22:27] <@YTCCSpark> 3) echo "My name is $name"; [22:27] <@YTCCSpark> actually, echo 'My name is ', $name; would work as well. [22:28] <@YTCCSpark> everybody got that? [22:28] ja. [22:29] Yup [22:29] mmhm [22:29] * Shaun nods [22:29] <@YTCCSpark> good. [22:30] *** ashley is now known as ashley[afk] [22:30] <@YTCCSpark> $name = "Spark"; $name = "My name is $name"; print $name; would have the same effect as well. [22:31] oo.. variable concatenation [22:31] <@YTCCSpark> technically not. [22:32] <@YTCCSpark> just reassignment to an expression :) [22:32] <@YTCCSpark> variable concatenation is the process of putting too variables together into one. it is done with the '.' operator. [22:32] yeah, I realized that after I said that :) [22:33] <@YTCCSpark> For example: $name="Spark"; $empty_sentence="My name is "; $sentence = $empty_sentence . $name; [22:33] <@YTCCSpark> so, who have I completely confused now? [22:33] I think I understand [22:34] <@YTCCSpark> any part I can clarify to make sure you understand 100%? [22:34] *** cailee (caileed@XXXXX.as.wcom.net) has joined #ChatSHACK [22:34] that last part? [22:34] <@YTCCSpark> concatenation? [22:34] yeah? [22:35] <@YTCCSpark> ok, think of it as a tractor trailer... $tractor = "SOMETHING"; $trailer = "SOMETHING ELSE"; $tractor_trailer = $tractor . $trailer; [22:35] *** Kirbobreon (Greg@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:35] <@YTCCSpark> essentially, you're hooking the two of them together. [22:36] Oh ok I get it now ;) [22:36] <@YTCCSpark> good [22:36] <@YTCCSpark> anyone else confused? [22:36] nope :) [22:36] * cailee blinks [22:38] <@YTCCSpark> good [22:39] <@YTCCSpark> does anyone have any questions at this point? [22:39] I don't [22:39] nuh uh [22:39] Yes, can i go to the bathroom? [22:39] * k[work] ducks [22:39] no Kim hold it [22:39] <@YTCCSpark> no. [22:39] * me flees [22:39] :O [22:40] *** cailee (caileed@XXXXX.as.wcom.net) Quit (What we do in life....echoes in eternity.) [22:40] ::holds it:: [22:40] <@YTCCSpark> hehe [22:40] LA LA LA LA LA [22:40] * k[work] does the bathroom dance [22:40] LA LA LA!!!!!!! [22:40] LOL Oh ok GO [22:40] ::dance dance dance:: [22:40] YAY!!! THANK YOU! [22:40] I LOVE THE BATHROOM DANCE [22:40] * k[work] runs [22:40] <@YTCCSpark> hehe [22:40] I AM VERY GOOD AT IT [22:40] Heheheheh [22:40] HI KIM [22:40] Are you, Ben? [22:40] HELLO BEN [22:40] NO I AM SHANNON [22:40] <@YTCCSpark> that was fun :_ [22:40] <@YTCCSpark> :) [22:40] IS SHANNON ON... [22:40] OH [22:40] <@YTCCSpark> back to PHP CLASS!] [22:41] HELLO SHANNON! [22:41] hahaha. [22:41] HI KIM! [22:41] <3 friends [22:41] *** ashley[afk] is now known as ashley [22:41] I WAS GOING TO ASK IF SHANNON WAS FINISHED WATCHING PRETTY WOMAN [22:41] wb ;) [22:41] YEAH WE BOTH WATCHED IT [22:41] ben is moaning something about his head hurting [22:41] he just collapsed on the recliner.. [22:42] <@YTCCSpark> At the bottom of Lesson Two, there are links to source code and output of the source code for handling variables and their output. [22:42] AWWW SHANNON [22:42] TELL HIM TO SUCK IT UP? [22:43] * MikeV pokes kim and shan and points to the teacher :P [22:43] shhh :P [22:43] <@YTCCSpark> Also, concatenation can be used to simulate the "," feature of ECHO. Anyone know how? [22:43] I AM AN UNRULEY STUDENT [22:43] * k[work] disturbs [22:43] * k[work] makes lots of noise [22:43] my teachers hated me in highschool [22:43] ;D [22:44] bbiaf [22:44] <@YTCCSpark> no? [22:44] <@YTCCSpark> Becky, do you have a quess? [22:44] looking at your code makes me have a question [22:44] BYE SHANNON :( [22:44] <@YTCCSpark> ok, shoot. [22:44] How come some lines you use echo and some lines you use print? [22:45] <@YTCCSpark> I was trying to show samples of using the different methods. [22:45] ok then I'm not confused [22:45] <@YTCCSpark> hehe [22:45] <@YTCCSpark> yeah, I just wanted to show the use of every different type [22:46] Kewl ;) [22:46] but I still don't know the answer to your question [22:46] <@YTCCSpark> Alright. [22:46] <@YTCCSpark> echo "My name is ", $name; [22:46] <@YTCCSpark> print "My name is " . $name; [22:47] <@YTCCSpark> although, when using ECHO in a real script, remember that you must add a "\n" every time you want your output (HTML) to have a line break in it. [22:47] * k[work] curls up in the corner and dies [22:47] I remember that from last week [22:48] * scott curls up with kim in the corner and dies with her [22:48] *** tina[moo-vie] is now known as tina [22:48] * @YTCCSpark applauds. At least someone's listening. [22:48] *** ashley (ashley@XXXXX.tnt2.ladue.mo.da.uu.net) Quit (Connection reset by peer (TCP/IP connection broken)) [22:48] <@YTCCSpark> am I teaching anyone except Becky at this point? [22:48] yes :) [22:48] coding is beyond my comprehension unless it's VB. [22:48] <-- quiet learner :) [22:48] <@YTCCSpark> yay :) [22:49] I'm here too [22:49] my brain doesn't work that way [22:49] <@YTCCSpark> this is much simpler than VB :) [22:49] blake would be here too he really wants to learn but he had a previous engagement [22:49] <@YTCCSpark> ah, I didn't know that. [22:49] <@YTCCSpark> So, at this point, are there any more questions? [22:49] Not yet [22:50] *** ashley (ashley@XXXXX.tnt3.ladue.mo.da.uu.net) has joined #ChatSHACK [22:50] not here [22:50] second time i've been kicked off tonight ;x [22:50] wb [22:50] <@YTCCSpark> ok. Well, I have 10 minutes left, but I've kinda covered everything I had planned for today, and not really enough time to start next weeks topic... hrmm... [22:51] * MikeV runs out to the playground :D [22:51] It's ok we can just end now if ya want ;) [22:51] I GET A SWING!!!!!!!!!! [22:51] Nothing is simpler than vb ;x [22:51] <@YTCCSpark> hehe... somebody should teach me how to run the Acronym game or something to fill time :) [22:51] and.. i had trouble with JS, so i know php is out of my league [22:52] this seems easier to me kim [22:52] goodnight. [22:52] Scott did all my JS homework :x [22:52] <@YTCCSpark> well, I guess everyone just has their own style [22:52] NIGHT NIGHT SHANNON [22:52] *** shan[prettywoman] is now known as shan[bed] [22:52] I had someone do all mine too ;x [22:53] hehe ;x [22:53] I was lost after the first class [22:53] If you know all about JS and PHP, you can make one AWESOME site [22:53] <@YTCCSpark> yep [22:53] top it off with Flash and wow :) [22:53] i know flash ;) [22:53] mmmm that was a good peach :) [22:53] <@YTCCSpark> if only I could make decent graphics :) [22:53] didn't help that I couldn't understand the professor ;x [22:53] are there any major companies who's sites are in PHP? [22:53] er... not peach.. [22:53] pair [22:54] pare? [22:54] I don't like flash [22:54] heh [22:54] <@YTCCSpark> scott - probably quite a few... gimme a sec and I'll dig them up for you [22:54] like MAJOR MAJOR companies [22:54] not like e-fondue.com [22:55] *** Alex (unspecified@XXXXX.houston-29rh15rt.tx.dial-access.att.net) has joined #ChatSHACK [22:55] Dialpad uses PHP [22:55] what's msnbc use? [22:55] asp [22:55] microsoft's standard [22:55] ah [22:55] whoa, I entirely forgot that it's Friday :O [22:55] never heard of dialpad [22:55] NEVER HEARD OF DIALPAD?! [22:56] nope [22:56] internet telephony [22:56] * Libbs banishes scott from the net [22:56] :O [22:56] from your web browser [22:56] no banishing him from the net :( [22:56] why would i used the internet for a phone when i have a phone right here? [22:56] kim.... i'm banishing him to your house ;) [22:56] it's not that great, scott [22:56] =;o [22:56] well ok! [22:56] ;D [22:57] =======;o [22:58] =====;o=====[_ _]=== someone got ran over by a car [22:58] "The Program" [22:59] <@YTCCSpark> scott - well, I can't find any real quick, but I'll find some for you by next week. End of #ChatSHACK buffer Fri Jul 19 22:59:30 2002