[22:01] *** YTCCSpark changes topic to 'It's 4Friday @ the 07You06th Tech #ChatSHACK || PHP Class' [22:01] <@YTCCSpark> Ok, everyone, welcome to PHP Class Lesson One! [22:01] Woo :DD [22:01] <@YTCCSpark> First off, let me get an idea of who all is going to be learning with me today. [22:01] I will [22:02] I'm going to try :o [22:02] do or do not, there is no try. [22:02] Ok [22:02] -Yoda. [22:02] Hi [22:02] * Shaun slaps invisible around a bit with a large trout [22:02] Hi Becky Q:) [22:02] * MikeV raises hand :) [22:02] real quick does anyone know where we can get mirc 5.8? [22:02] to download? [22:02] *** Matt (java@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:03] <@YTCCSpark> nope, sorry, Becky [22:03] did i win before i gpfed/ [22:03] ? [22:03] erm [22:03] did i win that round? [22:03] Becky [22:03] http://mirc.stealth.net/download/oldver.html [22:03] <@YTCCSpark> alright, if you're willing to work on this, I'll be sure to make sure you do learn PHP [22:03] Awesome :D [22:03] ooh [22:03] can you teach me php? [22:03] Matt you had 2nd :) [22:03] wait who are you? :x [22:04] <@YTCCSpark> is there anyone who's going to be doing this who does NOT have a webhost that supports PHP? [22:04] who won? [22:04] He's spark :P [22:04] Can't you see? ;) [22:04] * Shaun pokes Mike [22:04] uhhh.. name if feasible? [22:04] <@YTCCSpark> David [22:04] <@YTCCSpark> usually go by KF4MDV in here [22:05] ohhhh ok [22:05] cool [22:05] i do not have a webhost that supports php, btw. [22:05] i can make one [22:05] but it's a bit hard [22:05] as i don't have it downloaded [22:05] lol [22:05] <@YTCCSpark> if you don't have one, contact MikeV, he's said he'll set those up with an account for this class [22:05] I'm willing ;) [22:05] cool [22:05] will it stay up after the class though? [22:05] ;x [22:06] <@YTCCSpark> I would assume so, but that's up to Mike. [22:06] It can for a small amoutn of time. [22:06] <@YTCCSpark> when we say after the class, we mean for the weeks it lasts, right? not just like tonight :P [22:06] *** Matt (java@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:07] <@YTCCSpark> bah :P [22:07] yes. [22:07] <@YTCCSpark> ok, moving on. [22:07] <@YTCCSpark> PHP is a scripted language that integrates with HTML. [22:07] <@YTCCSpark> Breaking that down: scripted language = not compiled before running [22:07] im going insane [22:07] why cant i find this sheet music!! [22:08] <@YTCCSpark> integrates with HTML = can be used alongside ordinary HTML when needed [22:08] Ahhh ok [22:08] <@YTCCSpark> 4For everyone who hasn't seen it, the website for this course is it http://www.youthtech.com/codem/PHPClass [22:09] <@YTCCSpark> are there any questions at this point? [22:09] Not yet [22:09] * Shaun adds the link to his favorites ;) [22:09] None here :) [22:09] <@YTCCSpark> good, so I haven't lost you yet :) [22:09] I'm good :) [22:09] LOL not yet [22:10] <@YTCCSpark> PHP is basically used when what you want to do requires PERMANENT memory... i.e., remembers things from one page load to the next. [22:10] During only one session? [22:10] <@YTCCSpark> Other languages (JavaScript) have no ability to read/write files either on the client or server, so they can't store things like shopping carts, or shipping information. [22:11] Ahh ok that makes sense now :) [22:11] <@YTCCSpark> invisible - no, it can read/write server side and work with databases [22:11] *** angel (ytmirc@XXXXX.phil.east.verizon.net) Quit (angel) [22:12] <@YTCCSpark> For example, the YT forums are PHP-based. All entries are stored in files (or a database) by PHP code. [22:12] Mk got it :) thanks [22:12] <@YTCCSpark> any other questions about the uses/applications of PHP? [22:12] *** angel (jenny@XXXXX.phil.east.verizon.net) has joined #ChatSHACK [22:13] Again, none here :) [22:13] yet :) [22:13] <@YTCCSpark> good. [22:13] None here [22:13] *** Matt (java@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:13] * Robbie listens interestedly [22:13] can i teach a perl class? ill teach one ;o [22:14] <@YTCCSpark> Now, correct me if I'm wrong, but has everyone wanting to learn hand-written HTML code at some point before? [22:14] *** angel (jenny@XXXXX.phil.east.verizon.net) has left #ChatSHACK [22:14] yes [22:14] Yup [22:14] yeah [22:14] Yep [22:14] yes. [22:14] <@YTCCSpark> good. [22:14] ok. [22:14] hold on.. [22:14] can someone take a log of this [22:14] Matt, I'll msg you [22:14] and then AIM it to me afterward? [22:14] Sure matt :) [22:14] actually we should log these [22:14] <@YTCCSpark> Matt - sure [22:15] thank you :) [22:15] The class should be in the site... [22:15] and make them available? [22:15] <@YTCCSpark> yes [22:15] Ok [22:15] * ge0 is happy (sorta) [22:15] I'll post it :) [22:15] <@YTCCSpark> on the main page for the class, where it says [Chat: 7/12/02] I'll link to it [22:15] Oh ok great ;) [22:15] excellent [22:15] aww.. this stinks.. the copying part of the OfficeJet.. if you copy from the keypad (load and push copy) itll only copy in b/w... [22:15] brb [22:16] bak [22:16] wb [22:16] wb [22:16] <@YTCCSpark> ok, PHP is 99.99% of the time hand written. there are some tools to help automate it, but they mostly suck. PHP in no way affects HOW the content is displayed, only WHAT is displayed. [22:16] <@YTCCSpark> basically, you use PHP to print out HTML (more on that later). [22:16] ouuu PHP chat... [22:16] Hmmm Ok [22:17] * Crash_Override sits quietly as a fairly knowledgable webdeveloper (hey im CWT of a company ;) ) [22:17] <@YTCCSpark> ok, first important thing. ALL PHP code is enclosed in brackets. [22:17] <@YTCCSpark> CWT? [22:17] Cheif Web Technologist... ;) [22:18] * MikeV raises hand with a question [22:18] w/ 4 years of webdevlopment experiance in ASP/PHP [22:18] *** Matt is now known as Teachers_Pet [22:18] ok back on topic [22:18] *** Teachers_Pet is now known as Matt [22:18] :o [22:18] <@YTCCSpark> yes MikeV? [22:18] i think MikeV is KG4JNA [22:18] <@YTCCSpark> php? [22:18] PHP Hypertext Preprocessor [22:19] Can't you just use  MikeV - on some servers, but many have it configured to require hmmm.. [22:19] Mike, you can but its not suggested as not all servers alow it... [22:19] <@YTCCSpark> in ALL cases, good to know [22:19] yup. [22:20] Ah, ok. I wasn't aware of that :) [22:20] technicly you can also use <% %> (asp style) if the server is configed for it.. [22:20] don't want to put the wrong opening tag and have all the code mess up.. never good.. [22:20] <@YTCCSpark> yeah, but on servers that support ASP too, imagine the errors you'd get [22:20] Everything I've seen uses just  which is why I was asking. [22:20] Hmmm.. [22:20] * Matt raises hand [22:20] <@YTCCSpark> I suggest you use yes Matt? [22:20] Matt is using: Windows 2000 [22:20] I agree [22:20] uhhhmmmm... [22:21] i forgot. [22:21] sorry :( [22:21] informant, part #chatshack [22:21] MikeV: what? [22:21] if it's failproof then that's better ;) [22:21] i'll ask later. [22:21] goodbye, MikeV. [22:21] *** informant (informant@216.40.203.999) has left #ChatSHACK [22:21] part #chatshack [22:21] :o [22:21] he'll come back when we're done with this :) [22:21] <@YTCCSpark> ok [22:21] Oh yes, now I have the question. [22:21] <@YTCCSpark> yes, Matt? [22:22] Out of the PHP downloads on this page: http://www.php.net/downloads.p hp which should I download for apache/pws? [22:22] <@YTCCSpark> on which OS? [22:22] i have PWS right now.. going to upgrade to apache.. if i had a dedicated connection it would be a lot better [22:22] Win98 [22:22] Se [22:23] <@YTCCSpark> umm, for Apache, you need the zip, for PWS, the installer [22:23] ah, k.. [22:23] i download the zip then. but not right now. [22:23] <@YTCCSpark> ok [22:24] Ok.. [22:24] * Matt sits in a desk. [22:24] * Matt is ready to learn [22:24] <@YTCCSpark> next important thing: with a few exceptions that we'll discuss later, every line of PHP code ends in a ";" [22:25] <@YTCCSpark> this is similar to other languages (C, C++, etc.) [22:25] perl does that too.. [22:25] <@YTCCSpark> good point [22:25] print "Hello, world!"; [22:25] etc. [22:25] <@YTCCSpark> point: PHP is very similar to other languages [22:25] ahhh [22:26] <@YTCCSpark> would do the same in PHP as in PERL [22:26] <@YTCCSpark> it would print Hello, world! [22:26] *** Jeff (snushed@XXXXX.client.insightBB.com) has joined #ChatSHACK [22:26] Hey Jeff [22:26] hi :) [22:26] welcome to PHP class/chat ;) [22:26] By print.. do you mean display to screen or? [22:26] yeah [22:27] * ge0 prefers to treat output statements as function calls in php as in C, rather than streams as in C++ [22:27] display to screen [22:27] Mk [22:27] <@YTCCSpark> invisible - when you use your browser to go to that page [22:27] <@YTCCSpark> it will display "Hello, world!" [22:27] Ahh ok [22:28] <@YTCCSpark> the other output function that is commonly used is "echo" [22:28] <@YTCCSpark> echo has one neat trick that is quite useful later on [22:28] mhm [22:28] what exactly is PHP? :P all i know is that my message baords are phpBB :P [22:28] <@YTCCSpark> echo "Hello, ", "World!", " [22:28] <@YTCCSpark> "\n"; [22:28] <@YTCCSpark> echo "Hello, ", "World!", "\n"; [22:28] Jeff, http://www.youthtech.com/codem/PHPClass/ [22:28] BTW, if I go AWOL at any time, do not worry, as long as I don't quit.. [22:29] And what does all that do, Spark? :X [22:29] coolness :) [22:29] [22:29] or what is the purpose of separating it as such? [22:29] <@YTCCSpark> invisible - at this point, there is no good reason. let me give you a better example: [22:30] All right [22:30] *** AlteredState (Cube@XXXXX.nycap.rr.com) has joined #ChatSHACK [22:30] Hey ry ;) [22:30]   [22:30] <@YTCCSpark> [22:30] *** Alex (unspecified@XXXXX.houston-24rh16rt.tx.dial-access.att.net) has joined #ChatSHACK [22:30] hi [22:30] hey Alex :) [22:30] hey Blake [22:30] <@YTCCSpark> which will display 5 + 8 = 13 [22:30] Aohh ok [22:31] Okay one more.. what does the /n do? [22:31] ahh, now I get it ;) [22:31] \n = newline [22:31] <@YTCCSpark> thanks Matt.... yes, \n is the newline. [22:31] <@YTCCSpark> basically, it's like pressing enter/return [22:32] Okay what would the purpose of having that at the end of the php 'code'? [22:32] Hello Mr. Blake :O [22:32] just to have a space before the html continues? [22:32] PHP? [22:32] [22:32] Alex: http://www.youthtech.com/codem/PHPClass/ [22:32] would produce: [22:32] <@YTCCSpark> invisible - in a single line of code, it doesn't matter. but with many lines/HTML afterwards, it makes it more reasable [22:32] Hello, world! [22:32] My name is Matt! [22:32] right? [22:32] Ok :) [22:32] <@YTCCSpark> right [22:32] ah, I should read the topicline :O [22:32] that makes sense :) [22:32] Actualy matt, that wouldnt work i dont belive... [22:33] *** YTCCSpark changes topic to 'It's 4Friday @ the 07You06th Tech #ChatSHACK || PHP Class http://www.youthtech.com/codem/PHPClass' [22:33] why do you ahve commas? [22:33] hav* [22:33] HAVE [22:33] the print function only accepts one argument... the echo accepts multiple [22:33] ok... [22:33] *** Jeff is now known as Jeff[work] [22:33] <@YTCCSpark> special note: ordinary text can be contained in either (') or ("), but the \n MUST be in (") for it to work. [22:33] what about [22:33] that works fine [22:33] that would work fine [22:34] <@YTCCSpark> yep [22:34] [22:34] <@YTCCSpark> yes, Matt, that works too [22:34] <@YTCCSpark> sure you haven't done PHP before? :P [22:34] i've done a little [22:34] <@YTCCSpark> ah [22:34] a lot of it is from Perl [22:34] <@YTCCSpark> gotch [22:34] <@YTCCSpark> gotcha [22:34] or at least what i know.. [22:36] * C[a]ssie is away (12Reason:04 Auto IdleAway after 30 minute(s)) since 8:31:44 pm. AwayPager is on, AwayLog is on [22:36] *** Matt (java@XXXXX.ipt.aol.com) Quit (Connection reset by peer (TCP/IP connection broken)) [22:36] ... [22:36] <@YTCCSpark> Ok, are there any questions I can answer? [22:36] I use PHP on my site to handle the overall template and to have some shortcuts for common elements.. [22:37] Yeah David [22:37] I noticed on the lesson page..the stuff about static and dynamic coding.. What's the difference between them? ;) [22:38] or rather....why would I use one and not the other/ [22:38] <@YTCCSpark> the two styles, you mean? [22:38] Yep [22:39] <@YTCCSpark> the first one allows you to put MOST of your code into HTML, meaning you don't have to print it out. However, if you want to use cookies, you can't have anything before the opening ahh, okay [22:40] you can also mix and match both styles.. stuff not in between tags is treated like you called echo() with it.. that way you do stuff like this [22:40] One Title Another Title [22:40] <@YTCCSpark> but let's not make things TOO complicated yet [22:41] it gets confusing if you don't indent right :P [22:41] Yes lets not confuse me [22:41] Me either :o [22:41] <@YTCCSpark> Any questions yet? [22:41] *** Matt (java@XXXXX.ipt.aol.com) has joined #ChatSHACK [22:41] ::spins becky around:: [22:42] yes [22:42] Nope David ;) [22:42] what did i miss? [22:42] :x [22:42] sorry.. had to reboot.. machine's a bit unstable [22:42] * me gets dizzy but still continues to try and learn [22:43] <@YTCCSpark> ok, I'm glad to see that... we're moving a bit faster than I thought, but that's ok [22:43] [22:43] w00t. [22:43] i remember a lot more from perl than i thought.. [22:43] might get slower as the weeks go on and people find out about it ;) [22:43] whatchaconfused about becky? [22:43] I don't think you have to escape the @ sign.. do you? [22:43] <@YTCCSpark> nope [22:43] hmm.. [22:43] I'm not yet ;) [22:43] i remember in perl ya had to.. [22:43] PHP uses $variable for all types of variables [22:43] ah yes.. [22:43] <@YTCCSpark> PERL uses @VARIABLE to represent an array, PHP only uses $VARIABLE [22:44] but I'm sure I will be at some point [22:44] $variable @array and %hash for Perl [22:44] if you keep mixing perl and PHP i'm gonna get confused though [22:44] *** ashley[IMs] (ashley@XXXXX.tnt1.ladue.mo.da.uu.net) has joined #ChatSHACK [22:44] * ashley[IMs] sighs [22:44] *** ashley[IMs] is now known as ashley [22:44] which means you have to say print "10\% of 100 is 10."; in perl.. [22:45] <@YTCCSpark> Matt, can I ask you to stop confusing the others? [22:45] or you can do '10% of 100 is 10.' [22:45] sure. [22:45] <@YTCCSpark> thanks [22:45] thank you ;) [22:45] *** PDAGeek (Server@XXXXX.shklfd01.ar.comcast.net) has joined #ChatSHACK [22:45] ty :X [22:45] *(like you're supposed to) [22:45] [22:46] <@YTCCSpark> ok, anyone who's ever programmed before should understand mathematical operations... very simple... non-programmers shouldn't have trouble either [22:46] eek math [22:46] mathematical operations.. [22:46] like 5 + 5? [22:46] ;o [22:46] <@YTCCSpark> PHP does NOT differentiate between integers and real numbers, so 7/3 will give you 2.33333333 [22:46] do you have to put around everything? [22:46] Matt, around parts you want interpreted as code, yes [22:46] <@YTCCSpark> everything that is pHP [22:47] darn... [22:47] <@YTCCSpark> it's not that big a deal :P [22:47] it's it's 7 extra keystrokes.. [22:47] 9 if you include holding the SHIFT. [22:47] <@YTCCSpark> in a whole file? big deal :P [22:48] Anyone set up Apache lately? [22:48] i emphasize on lately, please. [22:48] matt after the chat please ;) [22:48] matt... i compiled apache ... ohh monday .... ;x [22:48] ok. [22:48] lol. [22:48] i'll stick with binaries ; [22:48] ;o [22:49] <@YTCCSpark> can anyone tell me what 22 % 5 would give you? [22:49] uhh [22:49] 1.1? [22:49] in my head or using my Visor? :P [22:49] <@YTCCSpark> uhh, either [22:49] 1.1 [22:49] 2? [22:49] it's 1.1 [22:49] <@YTCCSpark> no :P [22:49] the answer is 1.1! :o [22:49] <@YTCCSpark> the answer is 2 [22:50] <@YTCCSpark> it's the modulus operator [22:50] how is it to? [22:50] wtf. [22:50] two* [22:50] ack I'm lost now :X [22:50] % means modulus, in other words, "give me the remainder of dividing a and b" [22:50] that's a percent sign. [22:50] * tasha buries her head in a pillow and screams [22:50] I think. [22:50] they need new symbols. [22:50] <@YTCCSpark> Alex is 100% correct (and there it is a percent sign) [22:51] David can you re-explain why it's 2? :X [22:51] <~ slow [22:51] <@YTCCSpark> sure [22:51] <@YTCCSpark> basically, if you remember math, it's the REMAINDER of 22/5 [22:51] matt, to throw it out there [22:51] Ohhh ok [22:51] if you have it set to allow short tags [22:51] you can simply use [22:51] that's 4 :) [22:52] so % means remainder? :x [22:52] my calculator says 5. [22:52] <@YTCCSpark> basically [22:52] Ohh ok :D [22:52] I'm found [22:52] <@YTCCSpark> it's known as modulus, essentially [22:52] <@YTCCSpark> but don't worry about that [22:52] oh oops [22:52] (5 goes into 22 4 times (5 * 4 = 20) with 2 left over... woo, I actually could have figured that out if I'd tried. this PDA is making me too dependent on it) [22:52] i did it the other way around. [22:53] <@YTCCSpark> 5 % 22? [22:53] <@YTCCSpark> yes, that would give you 5 :P [22:53] <@YTCCSpark> a % b = a IF a < b [22:53] so i'm guessing.. [22:53] waiiit. [22:53] <@YTCCSpark> oops [22:53] How would you get 5? [22:53] b % a = b IF a > b? [22:54] 22 does not go into 5 [22:54] and therefore get 5? [22:54] so it goes 0 times with 5 left over [22:54] 0 remainder 5 [22:54] ok :) [22:54] <@YTCCSpark> have I thoroughly confused everyone? [22:54] Nope :) [22:54] not me yet [22:54] I'm on track again :) [22:54] <@YTCCSpark> so, any questions? [22:54] Nope, not yet ;) [22:54] Not yet here :) [22:55] nope. [22:55] Oh gosh David [22:55] I missed you're chat :( [22:55] <@YTCCSpark> What I'd like everyone to do is to put a file on your PHP-enabled webserver that says and then check it out with your browser [22:55] Rick, the course is online too ;) [22:55] <@YTCCSpark> OH! [22:55] is it? [22:55] hmm. [22:55] David, has the link ;) [22:56] can we add other stuff to it too? [22:56] <@YTCCSpark> I almost forgot one thing! ALL files containing PHP code MUST end in .php [22:56] <@YTCCSpark> Matt - like what? [22:56] like Hello, World!"; ?> [22:56] etc. [22:56] <@YTCCSpark> sure, if you want [22:56] cool. [22:56] i can't do it right now.. [22:57] <@YTCCSpark> I just want to make sure that everyone gets the idea of editing the files, uploading, testing, etc. [22:57] ima go now..if im not back on later...'nite [22:57] as i have no idea how to access the server.. [22:57] *** Tashea (java@XXXXX.buckeye-express.com) has joined #ChatSHACK [22:57] *** Kirbobreon (Greg@XXXXX.ipt.aol.com) Quit (Kirbobreon) [22:57] i'm going to make my own server soon enough [22:57] as soon as i can figure out which apache to get. :x [22:57] <@YTCCSpark> Allright, on a final note, I'm going to post the transcript of this to the YT Server IMMEDIATELY after chat. [22:57] [22:57] <@YTCCSpark> I will also try to have lesson two up later tonight or tomorrow, so check it and have a glance so I don't totally confuse you next week. [22:58] Thank you David :) Excellent chat!!! [22:58] <@YTCCSpark> Thank you. [22:58] 4,2hi everybody!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!! [22:58] Thanks David! ;) [22:58] I look forward ot next week's :) [22:58] Heya Tashea :) [22:58] man, i gotta note this [22:58] 4,2hi [22:58] <@YTCCSpark> If anyone has questions, ask me on here, or email me: david-tom@cosmicsys.com [22:58] that was actually pretty interesting :O good job :O [22:58] too bad i won't be here next week [22:58] I arrowed up David, and you did an excelent job :) [22:58] <@YTCCSpark> Thanks all! [22:58] you said a transcript is always avaliable for each lesson? [22:59] <@YTCCSpark> PDAGeek - yep, but you'll have to read past all the non-related comments ;) [22:59] lee.. which apache to download: http://www.apache.org/dist/httpd/bina ries/win32/apache_2.0.39-win32-x86-no_ssl.msi [22:59] ahh so you're not editing it? hehe [22:59] erm [22:59] oops [22:59] whichever version you want [22:59] * Tashea 4,2wow only one person can say "hi" 2 me is that all?????????? [22:59] lol [22:59] <@YTCCSpark> no, I'm a tad too lazy [22:59] if you want to run 2.0 [22:59] get that [22:59] hi Tashea [22:59] <@YTCCSpark> Hi Tashea [22:59] http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.39-win32-x 86-no_ssl.msi [22:59] sorry :( [22:59] if you want the stable 1.0 get that [22:59] 4,2hi [22:59] ARGH [22:59] you'll prolly want the msi version [22:59] wtf. [22:59] hm [23:00] How're ya today Tashea? :) [23:00] i guess im gonna go to bed [23:00] http://www.apache.org/dist/httpd/binaries/win32/ [23:00] have a good one tasha [23:00] 4,2im fine [23:00] i didnt get a how're ya today :( [23:00] sure will lee :P [23:00] g'night [23:00] *** tasha (faltered@XXXXX.ipt.aol.com) Quit (happiness is like peeing your pants.. everyone can see it but only you can feel it's warmth ;)) [23:00] well it's a personal choice matt :p [23:00] <@YTCCSpark> Thanks all! [23:00] i mean do you want to run 2.0 or 1.x? [23:00] * Matt Death to all sounds. [23:00] 4,2how r u today tasha [23:00] I don't know. [23:00] tasha just left [23:00] <@YTCCSpark> I now return this to regularly scheduled nothingness ;) (jk) [23:00] What'ever's all good. [23:00] both are good [23:00] how are ya Tashea [23:00] it just depends on waht you want though [23:01] 2.0 has some new features, etc [23:01] 4,2fine [23:01] welll [23:01] i'ma leave for a ile [23:01] Thankya again spark [23:01] while. [23:01] -invisible- topic change btw :) [23:01] *** Matt is now known as matt[Away] [23:01] and then you jsut decide if you want the exe installer [23:01] or the new MSI installer [23:01] both are fine [23:01] -invisible- actually you can leave it [23:01] * Tashea man im sleepy [23:01] not much differ in install End of #ChatSHACK buffer Fri Jul 12 23:01:54 2002