IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-20
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Next >
[21:49]<fyguwdrg>-digo86 refresh the page now try it
[21:50]<myjrjo7>+tortho, do you need to configure Mail Agent to parse the email or can you already give the php programmer the email as plain text?
[21:50]<maffd>+megaman: I'm just glad that UE has a "Reindent" function to I can kill them evil spaces people use for their indents, so I can use my much prefered 3
[21:50]<vjzvxj>+to extract 3 lines of text, and a email adress from emails wich arrives to a pop/imap server..
[21:50]<yusmrp>-diogo86, xshad, MarkR42 now i can think how to fix the problem thank you very much.
[21:51]<myjrjo7>+linuxman, Your user ID or password is incorrect
[21:51]<vjzvxj>+philip: sorry, didn't knew that. I'll change channel.
[21:51]<sxyfmg2zrgm>-hmm
[21:51]<sxyfmg2zrgm>-why can't i do this: echo "<option" . if($_GET['country'] == $country){echo "SELECTED";} . ">".$country."<br>";
[21:51]<sxyfmg2zrgm>-?
[21:52]<sxyfmg2zrgm>-ifs are fun
[21:52]<maffd>+selected='selected' btw :)
[21:52]<fyguwdrg>-userid: tdd1984@yahoo.com
[21:52]<fyguwdrg>- password: 76f2b5
[21:52]<cznff9q>+shildebrand: Because you're trying to concatenate the result of an if statement to a string, which makes no logical sense.
[21:52]<sxyfmg2zrgm>-does it matter?
[21:52]<sxyfmg2zrgm>-i have double quotes all over the place
[21:52]<fyguwdrg>-diogo86: there you go
[21:53]<cznff9q>+It's not the quotes, it's the attribute name and value. XHTML doesn't support short-circuited attributes.
[21:53]<cznff9q>+you want to either break it up into multiple statements, or use a ternary operator.
[21:53]<myjrjo7>+linuxman, so you need that query string that was at the url?
[21:53]<sxyfmg2zrgm>-what's a short-circuited attribute?
[21:53]<sxyfmg2zrgm>-and what's the ternary op?
[21:54]<fyguwdrg>-yea, but it won't pass onto the postit.php page inless i go back to the post_an_ad.html page
[21:54]<myjrjo7>+linuxman, you can put inside the login form
[21:54]<cznff9q>+HTML, circa 1996: <input type="checkbox" checked>
[21:54]<zyzwzvn>+how do I update mysql client that came with php? I just updated mysql server to 5.0, but the client is still 3.23.32
[21:54]<myjrjo7>+linuxman, <input type="hidden" name="weee" value="here goes the GET value" />
[21:54]<myjrjo7>+linuxman, then it'll be available as $_POST["weee"]
[21:54]<cznff9q>+XHTML and HTML, circa 2000+: <input type="checkbox" checked="checked" />
[21:55]<cznff9q>+Ternary operator: $a ? $b : $c
[21:55]<myjrjo7>+linuxman, you should not change "weee" to anything else as it brings you luck :) lol
[21:55]<fyguwdrg>-lol
[21:55]<fyguwdrg>-yea i see what your saying le tme try it
[21:55]<sxyfmg2zrgm>-checked is for radio and checkboxes right?
[21:55]<sxyfmg2zrgm>-i thought SELECTED was for drop down menus
[21:55]<cznff9q>+diogo86: Shouldn't that be Wii ? :-)
[21:55]<cznff9q>+shildebrand: Yes. The same holds for both checked and selected. You'd do selected="selected"
[21:56]<myjrjo7>+Crell42, it's evil! mine is cute :P
[21:56]<cznff9q>+And readonly="readonly" if you want to use that.
[21:56]<cznff9q>+And so forth.
[21:56]<fyguwdrg>-<input type="submit" value="Log in" /> Should i just changed the value on that?
[21:56]<myjrjo7>+linuxman, then you must take care to look for $_GET["weee"] if it is set otherwise $_POST["weee"]
[21:57]<fyguwdrg>-k its set as you can see the link shows on the accesscontrol.php page
[21:57]<fyguwdrg>-or gets passed to the accesscontrol.php page
[21:57]<cznff9q>+shildebrand: The ternary operator returns one of two expressions, depending on the truth of the first expression.
[21:57]<sxyfmg2zrgm>-yeah i have experience with that from C/C++
[21:57]<sxyfmg2zrgm>-just forgot what it was called :)
[21:57]<cznff9q>+So print "blah blah" . ($a ? 'selected="selected" : '') . "blah blah";
[21:58]<gvyavjz>+I'm having a little problem
[21:58]<fyvx>+:|
[21:58]<gvyavjz>+ function objectsList($name){
[21:58]<gvyavjz>+ $this->$name = array();
[21:58]<gvyavjz>+ }
[21:58]<cznff9q>+nvictor: That's what cialis is for.
[21:58]<fyvx>+Crell42: oOoo i like that style
[21:59]<gvyavjz>+Crell42: :D
[21:59]<cznff9q>+lith: Don't overuse it. :-) The ternary operator can get very hard to read very quickly if you're not careful. :-)
[21:59]<fyvx>+for the lesser coder maybe *evil grin*
[21:59]<fyvx>+MUAHAHA
[21:59]<cznff9q>+Never nest it. You'll never read it again.
[22:00]<gvyavjz>+Crell42: my objectslist constructor is constructed like that, now I don't know how to add objects to the list, since $name is defined outside :(
[22:00]<mmpnmmnzfd>-is there an MD5() ?
[22:00]<fyvx>+oh god nesting ternary's just seems like a bad idea to begin with.. I would assume it would parse out?
[22:00]<sxyfmg2zrgm>-this is getting a bit ugly, and it still doesn't work: ($_GET['country']==$country?echo 'selected="selected"':;)
[22:00]<maffd>+it works fine, but is ugly QUICK
[22:01]<drvvdaa>+mdfedderly: General tip: http://php.net/<term> is useful. In this case, http://php.net/md5
[22:01]<cznff9q>+Put the comparison in its own parens.
[22:01]<cznff9q>+The binding order on the ternary operator is kinda weird.
[22:01]<sxyfmg2zrgm>-that doesn't work
[22:02]<sxyfmg2zrgm>-i tried it before
[22:02]<sxyfmg2zrgm>-shouldn't matter since it's an evaluation
[22:02]<cznff9q>+As I said, ternary operator's ordering is weird.
[22:02]<fyvx>+I've always taken the simple approach when utilizing the ternary... no need to complex up a simple concept lol
[22:02]<gzzuvjpzg>-uhm, hi
[22:02]<mdcjzn>+got a question.... I'm trying to refer to a property of an object in this way: $object_name->($object_name->var_name)
[22:02]<gzzuvjpzg>-why do .net programmers get paid more than php?
[22:02]<gzzuvjpzg>-why why wHY!?
[22:02]<fyvx>+Make it as simple as possible, and not one bit simpler
[22:03]<mdcjzn>+minus the brackets naturally... coz they don't work. :)
[22:03]<mdcjzn>+how do i _do_ that?
[22:03]<cznff9q>+Try: (($_GET['country'] == $country) ? "selected='selected'" : '')
[22:03]<fyvx>+mdcore: use $object_name->{$object_name->var_name}
[22:03]<cznff9q>+MDCore: $var->$var2->varname
[22:03]<cznff9q>+Or that works too.
[22:04]<mdcjzn>+ah... squigglies... sweet.
[22:04]<fyvx>+damnit
[22:04]<cznff9q>+nvictor: I don't understand the question.
[22:04]<fyvx>+X-Chat frustrates the hell out of me... I dont know how to highlight an entire line without moving focus to a different channel :(
[22:05]<nlrlxus>-What is the best way to compare two strings, matching case insensitive?
[22:05]<drvvdaa>+lith: Click & drag?
[22:05]<fyvx>+mattmcc: Who wants to use the mouse???? this is IRC MAN!
[22:05]<drvvdaa>+But xchat is a graphical client..
[22:05]<fyvx>+so
[22:06]<fyvx>+the Mac is all about least amount of mouse time possible
[22:06]<cznff9q>+... The Mac is all about making a system unusable without a Mouse.
[22:07]<fyvx>+noway! they'd have a keyboaard shortcut to wipe your ass if apple made toilets
[22:07]<gvyavjz>+http://phpfi.com/124799 <-- my class is not working, but I need the constructor to set the name of the properties $name
[22:08]<myjrjo7>+nvictor, $this->name
[22:08]<fyguwdrg>-diogo86: hey should i apply this to this <input type="submit" value="Log in" /> but replace value with <?php echo $_REQUEST[type];?>







