Session Start: Tue Oct 31 12:05:05 2000 *** Now talking in #netsurprise *** Topic is 'Right Now: Tech Chat with TDavid! Ask Questions about Programming and the PHP Course! Welcome to the Adult Netsurprise Chatroom!' *** Set by CrEaToR on Tue Oct 31 12:25:42 -SurpriseBot- Welcome - Net Surprise IRC - thud.net channel #netsurprise okay...I try to set the topic usually a few mins before it starts anyways...that way people don't come in here and think nothings going on...then leave *** CrEaToR sets mode: +o TD-phone np - just letting ya know ;) Hi TDPhone =) ty *** TD-phone is now known as TDavid hello all :) hiya TD hello Master sorry im a bit late hehe *** LaughingEyes has quit IRC (QUIT: User exited) np TD.. I was about an hour late last friday :( i need to set a "cookie" to remind me where to be hehe lemme boot up the url for this week's php course info ... hehehe http://www.adultnetsurprise.com/learning_center/php/php_week_9.html there we go :) you got that cookies stuff down, willyB? :) yes I think so.. I haven't tried it but I did read it a few times.. it's been a busy weekend hmmmm, the bbs isn't linked, i just noticed that http://adultnetsurprise.com/cgi-bin/help_board/forumdisplay.cgi?action=topics&forum=Week+9&number=30&DaysPrune=100&LastLogin= so there is link to week 9 forum yeah no doubt on the weekend being busy cookies cookies, where to start ... i guess a discussion of what you can't do with cookies is worthwhile 1. cookies cannot contain viruses or malicious information that will hurt your computer still some surfers and even a few webmasters who believe the opposite of this 2. only the domain/ip setting the cookie may retrieve the cookie. so cookies set through a script from tdscripts.com cannot be retrieved by scriptschool.com and vice versa I understand all of the above... I'm with ya so far :) *** Jaggi has joined #netsurprise okies hi hi Jaggi 3. cookies are never permanent, they must expire at some point in the future anyone ever hear of a 'RIP ATTEMPT' on port 520?? although cookies can be set into the future as far as the year 2038 *** tia has joined #netsurprise so they might as well be deemed permanent hiya tia hi Creator, everyone :) hi tia 4. cookies can (but should not) be relied on as a sole way of tracking information *** Jamil has joined #netsurprise reason being that they can be disabled in browsers in like three mouseclicks but the cookie gets reset everytime the surfer goes back, right, if tney even allow them to be set and because of rule #1 primarily tney=they some surfers are paranoid about "being tracked" no they don't necessarily get reset *** CrEaToR changes topic to 'Right Now: Tech Chat with TDavid! Ask Questions about Programming and the PHP Course! Please, only topic related questions. Welcome to the Adult Netsurprise Chatroom!' Salut Tia, comment ça va? i like to use cookies to make some things easier for surfers, but not use them to rely on for anything too serious if at all possible like prefilling login information for instance or remembering user settings Salut Jaggi, comment ça va? we're in a workshop Jamil ok, I guess I was just looking at the number of times you have visited cookie that gets reset *** Annieb has joined #netsurprise hi AnnieB in some scripts you will reset them, yes Salut WillyB, comment ça va? Hi CrEaToR :) *** Jamil was kicked by TDavid (asta la vista, Jamil) hi jamil aragorn we can deal with that question in here if you'd like sure sorry :> *** sharkysr has joined #netsurprise no need to be sorry :) hiya sharkysr *** MissGwendolyn has joined #netsurprise *** SurpriseBot sets mode: +o MissGwendolyn just wondering if you can use the count function with any of the ENV vars in order to tally up the clicks Hello =) hi MissGwen =) Hey Creator. Hey TD, did you miss me... LOL didn't know for sure that I'd make it today, still trying to catch up from the weekend. the count() function is for tallying the size of an array i spose you could create your own count_clicks() function to do something creative like that ic hi sharkysr, missgwen :) maybe it would check the $HTTP_REFERER against a db entry or flat file log and then increment based on a match or create a new based on it or you could check a COOKIE and increment from there too Hey WillyB hrm , ok hi sharkysr :) It is far too easy for the surfer to ignore cookies, disallow them, or delete them from their personal computer so for any important type of data tracking this renders cookies grossly ineffective. I'm not up to speed yet TD, but will do my best to be caught up by Friday. Thanks for the sponsorship in Chicago. It was greatly appreciated. i heard it was a very good show, good job mon :) if you want to see the impact of having no cookies sometime go delete all your cookies out of the cookies directory and then revisit some of your favorite sites It turned out better then most expected, including me. But it was due to the sponsors participation, and the great webmasters that attended I made that mistake once TD. Damn I couldn't find anything. you'll see all kinds of user-settings are no longer prefilled or "remembered", thus the beauty of cookies so you can't just say $HTTP_REFERER ='s $whatever , and count the number of times $whatever happens? Or like you said dump that info to a flat file and just count that. I hope this makes a bit of sense :) cookies were designed to help preserve "state" but they are flawed in that the client can control their existance they work good for transactional or session setting type things IF the client doesn't deny the use of them you can set $HTTP_REFERER to a value, yes but you have to store the information about the "state" of prior information somewhere right, sounds good web pages are static and have no state inherently. It is the greatest downfall of the net from a programming perspective TD, sorry to pop in and run, but gotta get to the bank before it closes at 3. The Kong account is being closed today, and need to pick up the check to send to carol. So I'll talk to you later, OK? ok mon, talk to you soon thank you for stopping by :) *** gavster_BRB has joined #netsurprise this is why java and javascipt have gained interest because they have inherent state built into them *** sharkysr has quit IRC (QUIT: User exited) What's going on in here? you can't really design a very good chess game for instance on a single page using PHP because you'd need to somehow store each move and refresh the page each time Tech Chat gavster Really? Cool right TD that's why you haven't seen a whole lot of CGI games created ... because of the lack of state so netscape came along and said, boy we wish we had "session" support and created cookies and then IE offered support for them after they caught on some browsers exist which don't offer cookie support at all, and in fact you can make your own browser using visual basic and not include cookie support fairly easily Well technically speaking,couldn't you keep your state in a temp db table? Although that could get server intensive pretty quick . . . . you could make a browser that didn't have cookie or javascript support and surf websites wearing a virtual condom hehe php 4.0 has support for sessions, but essentially gavster that is how it is done, yes the point is instead of being stored in ram it involves I/O which is costly So what's your opinion on PHP4 with the Zend Optimizer vs. without, Tdavid? depends on what you are trying to do every project has different needs and different needs require different tools Ok, but I'm just wondering in general, best to have the Zend Optimizer just in case? Or only on projects where you think it would be necessary? it really depends on what the program is doing ... would the optimizer enhance the program or would it be extra overhead and not really provide a significant performance boost I gotcha - I was unaware that the optimizer represented extra overhead - my bad. . . =0( *** Annieb has quit IRC (QUIT: User exited) well personally i think that any fat in any situation needs to be analyzed. Zend swears up and down that the optimizer is the greatest thing since sliced bread but logic tells me that any extra subroutine no matter how well optimized is still an extra subroutine extra subroutines usually mean extra libraries and extra libraries usually affect efficiency it's like going to the store as the crow flies versus going to the store using roads Gotcha . . but you do think, that in a project that is script intensive, the benefits outweigh the cost in overhead? also i can't help thinking if I need speed badly, why not just avoid the optimizer and php altogether and do it in C or assembler? True . . . *** gavster_BRB is now known as gavster *** JP|hardcorebox has joined #netsurprise hi JP hi JP sorry, i realize i am kind of answering your question in riddles i like the zend optimizer and i think for most uses it is well worth it :) *** Vivian_HardcoreBox has joined #netsurprise Hi Vivian hi WillyB Not to worry - nothing wrong with qualifying an answer Hi everyone :-) hi Vivian I be smart enough to figger it out . . hi all :) lol but all too often some people think that they can use one thing (not saying you are by any means, of course) to fit all situations. In programming it rarely works that way. One project might be better in java, one in php, one in perl, one in javascript, blah blah blah Cool some programs work best using a combination of the aforementioned Well, that much I've found out for sure - there are certainly situations that require many solutions to be glued together cookies are another tool and i like to use them personally for letting users keep track of things without eating up extra i/o Take my current project - I'm actually using, access, perl, php, and mysql in combination . . . So I hear ya there . . . . Good point - I'm curious though, how do you handle surfers who don't allow cookies? offer them the option to store using i/o Gotcha It seems like a delicate balance sometimes - but as a developer, I find cookies to be nearly indespensible . . sometimes clients don't like the idea of telling the surfer everything that's going on, and that can be a bit trickier when developing Exactly . . . . but the bottom line is if I surf your site will it work without cookies and without javascript? because both of those items can be turned of very easily and more surfers are getting savvy about their uses I tend to try and develop sites so that it will work without those two things, and just has extra functionality when those options are enabled . . . . that is wise :) Well, I'd love to sit here all day and jaw, but it's back to the salt mines with me . . .. see ya gavster see ya later Gav :) Thanks for the discussion/info, TDavid . . . =0) bye gavster in about 15 minutes it will be the same with me hehe Interesting stuff you had on your mind ;) Bye-bye, all . . . i was 10 minutes late, i'll go 10 minutes over hehe *** gavster has quit IRC (QUIT: User exited) TD, what does the /path part of the setcookie do? now saying all this about cookies, i have kind of violated rule #4 for the code illustration i used hehe Is that the path on the surfers computer where the cookie gets stored? no the server tahat sets er that sets you can set a cookie that is retrievable from any directory on the domain or only from a specific place for even tighter security ok, so that's why there is /path, domain.com it there.. that's what had me confused :) *** tia has quit IRC (QUIT: User exited) as gavster mentioned above, use cookies as a tool for saving user custom settings or enhancing the system so if I just wanted to retreive it from www.dom.com/dir1/file.php I use the path variable just understand that if you depend on them that the system will be somewhat flawed to start out with by default the directory you set from is the only directory you can retrieve from you need to put in the / to make it all or a specific root path to make other directories in the hierarchy be able to retrieve the cookies ok, I c kind of like htaccess everything below affected, everything above not recursive ok yeah. 99% of the time i just set from script directory which is almost always a secured place you can also add the "secure" flag and make sure a secure server is being set and retrieved a cookie set in a members dir will work for anything in the members area as long as they are folders in that dir folders = dir visaversa no, it will only work in the members folder unless you set the path to that directory then all the directories beneath will be included right., that's what I meant :) ahh, ok :) I should be able to get the homework done for friday for the last two lessons.. I hope! hahaha the lessons are admittedly getting a little bit harder well, they should imo but i guess that's the idea ... get through week 16 and do every lesson and understand what you are doing and you'll be able to code some pretty cool things :) bye *** Jaggi has quit IRC (QUIT: User exited) putting all the stuff together there are a lot of concepts to incorperate :) and there are more and more to come! :)) yes there are, i sometimes wonder if 16 weeks is really enough, but much longer than that and people will seriously start losing interest and I don't want anybody to get discouraged, but i've been doing this nearly 20 years and every DAY practically I'm learning something I didn't know the day before true it might be small and somewhat insignificant by itself, but over the long haul it is more and more knowledge It would be cool to make another 16 week course for after this one.. sorta like a 2nd semester or something i don't think anybody masters languages like assembler or C .. they are just wayy too indepth ... I don't think anybody masters any programming language. All you can do is get in and do it and if you find a better way, make it better :) yeah, I've seen how there is as many ways to do something as there are doing it :) Even the guys who created the lang's don't know all there is to know about them.. but how close are they do you think to knowing it all? well a design team is as a whole usually knows quite a lot but no single individual really knows it all that i've met *** Chris has joined #netsurprise you might get one guy who is a genius at parsers then another guy who is the algorithm guy another guys is the I/O guy or gal mind you some very intelligent female programmers, i don't want to leave them out :) I see.. like a graphics guy and an html guy for a website absolutely hehehe... no! Don't forget the women! :) then you have the network server admin PERSON hehe the hardware guru Like MissGwendolyn hehehe Yeah! The one who makes the 150 an hour hehehe boy it is amazing if you find one person who just knows a LITTLE bit about all those things in addition to specializing in their one field *** PornDaddy has joined #netsurprise LOL Far from it WillyB! I'm lucky I can write html without tripping over my own 'feet' hello PornDaddy i think it is important to be up front about your knowledge and to point out to the client that you can't possibly know all the variables hehehe! your sites look like you know more than you do then missGwen ;) Helooooooo MG especially if you are thinking of doing custom programming for others What's up Tdavid :^) hi porndaddy :) Did you get everything worked out? Thats a good point TD.. as long as they don't expect you to because others have told them "they" could do it all let me shoot you a call in a bit here :) sweet wife is on the phone right now What's the line WillyB? If you can knock them out with knowledge, baffle them with bullshit? LOL That's how I code but then you'd have to be prepared to show them lmao Gwen!!1 C V Ok she's off the phone now i love working with places that have built in graphics people and html people, then all i have to concentrate on is raw code kind of like adult netsurprise :) copy and paste... what do I win PornDaddy? hehehehe Your an HTML guru now LOL hahahaha! brb need to snag the phone and call the vet also good server admins are a must ... i love it when they say they are with National Net or Cyberwurx hehe I like it to TD! the graphics person make the coder look good and the coder makes the graphics look good on the page hehehehe ;) i won't mention a few CHEAP hosts out there that suck few????????? LOL LMAO! ok, im being nice :) it's like anything else, you get what you pay for *** Margie has joined #netsurprise It's probably the few who are decent.. like free hosts I'm doing hosting on my 486DX4 machines with an uplink of 14.4k hehe yep... I liked Rowdy's article a few weeks ago.. you get what you pay for hi Margie any other questions on cookies or scripting in general anyone, i'm about to retreat to script school Remind me not to use your hosting PD hehehe hmmmm hi Creator Wolfe Lives! i remember when 14.4 was blazing hehe hi Marge PD hosting only $.99 per month I don't have any more questions td :) Hi Snikks Hi Willy i remember thinking tape drives were fast lol Tryin to decide what I want on my badge at adult dex ... lol porndaddy! Hey Margie hi PornDaddy Newlywed Wof * MissGwendolyn is back wolf hehe how about a wolf with a half-chewed arm in its mouth, wolfe? willyb how about Howler hehehe what's up aragorn ALL: ALL@192.168.0.2 : DENY if i add that to hosts.deny that will ban that ip right ? i only have entries in hosts.allow should work aragorn thanks PD that is your internal network though aragorn your talking about .htaccess right? it will ban your computer from the network no PD.. it's the hosts.allow host.deny files on a firewall Snikks what are you putting on your badge ??? OH ok 192.168 is a private class C network nevermind Hmmm ... * PornDaddy wiggles back in my corner shit yeah i know ,, just needed it as an eg. :) hehehe ok so add the ALL: ALL@192.168.0.2 : DENY to hosts.allow ? Maybe I'll use a secret code name ... there are just some people who might be there that I wouldn't want to listen to their mouth if they knew I was there all you really need in the deny file is ALL: 1.2.3.4 or what ever, you don't need the rest of it oh so ALL: and ip in the hosts.deny ? That will deny everything from the ip address you give k yep I need to go find lunch bbl =) *** MissGwendolyn has quit IRC (QUIT: User exited) If you want yourself to be able to ftp in only to your box you put in hosts.deny cool. This guy i know is gettin bandwidth burned on him from a addy reloading his page over and over. And some other weird things are happening. He just got a call from holland 2 ,, hrmm :) Ah that's bad bye A/all *** Margie has left #netsurprise I'd keep him out of the whole server See ya Marge Well thats what this will do though won't it ? deny all req's from the ip ? yes, to every port and service on the machine I dont think he will even get a ping back from it :) yeah i figured. Cause i had to personally add my own local ips to my hosts.allow to even telnet to my box :> yeah .. YEEHAA :) thats what i like hehe ... I would say it is one of those pic stealers ... laters all damn b@st@rds :) cya TD I don't have anything in my hosts.allow file later TD Session Close: Tue Oct 31 13:29:51 2000