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-07-10
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
Next >
[06:45]<tml>lig: Mixing numerical and associative indexes confuses many of PHP's internal array functions. You should really refrain from doing so whenever possible.
[06:45]<lsv>Rocksfrow, it's also horribly done :x
[06:45]<zjacspzjw>pst: it works great :-)
[06:45]<rdvxzrwff>doesn't php documentation recomend (not require) vars o be lowercase, constants uppercase?
[06:45]<lsv>Rocksfrow, they should have used another attribute instead of trying to require 'return escape(' to implement
[06:45]<tml>cythrawll: No.
[06:45]<fyr>TML - understood - but this is for a phpt test - I want to test the boundries
[06:46]<jnnnc>anyone?
[06:46]<zjacspzjw>pst: ahh..so i was right about having to call it directly from link?
[06:46]<eyzau>cythrawll: that is a coding practice based on what you are coding for, there is no php official way of doing it
[06:46]<lsv>Rocksfrow, yes. It is lame.
[06:46]<zjacspzjw>pst: suggestions?
[06:46]<tjufgg>dphiffer: Don't pm without asking please.
[06:46]<rdvxzrwff>zircu, i realize that, but i thought i saw something in the documentation
[06:46]<rdvxzrwff>i may have saw it just in everything else i read instead
[06:47]<lsv>Rocksfrow, looking and thinking.
[06:47]<eyzau>cythrawll: iirc there is metntion of something to use CONSTANTS in upper case
[06:47]<rdvxzrwff>maybe that's what im thinking of
[06:48]<tml>lig: Well, you get the key 'a' in the output of the second run because the two 'a' keys never get compared to each other.
[06:48]<zjacspzjw>pst: maybe i find a diff tooltip method?
[06:48]<eyzau>of course it could be in the user notes that i saw that as well
[06:48]<lsv>Rocksfrow, give me a minute :p
[06:48]<zjacspzjw>pst: lol ok
[06:48]<eyzau>TML: is it suppose to compare in order? it sounds like the function isn't suppose to behave in order
[06:49]<fyr>TML - So position in the array is relevant to the search? Hmm - would not have thought that
[06:49]<tml>lig: Here are the comparisons done in your second example: c to b; c to a; c to 0; 1 to c; 0 to c; b to 0; a to b; a to 0; 1 to a; 0 to a; a to 0; b to 0; 0 to 0; c to 0; 1 to 0; 1 to a; 1 to 1;
[06:50]<tml>You can see we never got an "a to a"
[06:50]<vmmwno9>http://pastebin.ca/83833 could someone help me for some reason im getting multiple rows back on my page view my page here to see what im talking about http://74.133.86.131/categories/classifieds/foo.php?type=antiques I don't know if its in my query, or what cause i just installed my pagination.
[06:50]<lsv>Rocksfrow, can you pastie.caboo.se your origonal code?
[06:51]<eyzau>TML: but isn't suppose to check for any existance of 'a' in the other array? it notes it is like array_diff() which would mean it would check for any existance of 'a' key
[06:51]<tml>If they were clearly ordered arrays, it would do the right thing. If they were clearly hashes, it would do the right thing. When you mix ordered and non-ordered keys, it falls over.
[06:51]<zjacspzjw>pst: original code of what
[06:51]<lsv>Your code
[06:51]<lsv>What you posted first
[06:52]<zjacspzjw>shit..i dont have it anymore man
[06:54]<fyr>TML - is the comparison done like a cartisan product?
[06:55]<lsv>Rocksfrow, I want to strange whomever wrote that.
[06:55]<tml>lig: Yes, but the 'a' key in the second array has already been dropped from the "search space" because when it got compared to one of the int's, it was cast and came out "true"
[06:55]<fyr>Ahh -
[06:56]<zjacspzjw>pst: haha
[06:56]<zjacspzjw>stangle*
[06:56]<tml>So by the time you get to 'a', 'a', the first 'a' doesn't exist anymore
[06:57]<tml>(So the comparison is never actually done)
[06:57]<fyr>damn that loose typing ;)
[06:57]<tml>=)
[06:57]<efyfjr>having some problems with flush()
[06:57]<efyfjr>php isn't flushing properlly
[06:57]<lsv>Rocksfrow, does it honor _anything_ you put in onmouseover?
[06:58]<efyfjr>any thought?
[06:58]<zjacspzjw>pst: does what honor?
[06:58]<lsv>Rocksfrow, nvm.
[06:58]<tml>Epilog: flush() just flushes PHP's output buffers to whatever server process is in front of it
[06:58]<fyr>Thanks for explaining TML
[06:58]<zjacspzjw>pst: can't we tell it to recognize showToolTip instead of escape
[06:59]<tml>Epilog: e.g., if you're using Apache, flush() just sends all the PHP output to Apache's buffers.
[06:59]<yvzn2rf>TML: are you familiar with any decent server_push functionality? or even if a decent one would be *possible* ?
[06:59]<efyfjr>TML: the strange part is that it used to work well some weeks agoa
[06:59]<lsv>Rocksfrow, then escape is called later -- but it doesn't really exist.
[06:59]<efyfjr>TML: and I don't remember doing a apache upgrade
[06:59]<lsv>Rocksfrow, and it won't handle the nested escape any way you do it.
[07:00]<zjacspzjw>pst: hmm
[07:00]<tml>itrebal: I'm sure it'd be possible, but you'd want to write your own server probably.
[07:00]<efyfjr>TML: also, I have implicit flush on and sending 4096 chars before
[07:00]<lsv>Rocksfrow, do you know enought about tt_Show to call it directly?
[07:00]<yvzn2rf>TML: yuck - nevermind :)
[07:00]<zjacspzjw>pst: hmm....
[07:01]<tml>Rocksfrow: Davey has one
[07:02]<zjacspzjw>DAVEY:
[07:02]<zjacspzjw>Davey seems to be AFK
[07:02]<tml>Rocksfrow: He's probably not looking right now. Give it a bit, he wanders in and out.
[07:03]<vmmwno9>tml: hey man whats going on
[07:03]<tml>Rocksfrow: I think he keeps it at http://tooltip.crtx.org/, but don't quote me on that
[07:03]<vmmwno9>tml: i had a good question figured i'd ask you cause you always point my in the right direction
[07:04]<drvnd>me? AFK? :)
[07:04]<drvnd>NEVER
[07:04]<tml>heh
[07:04]<drvnd>Rocksfrow: TML has it right :)
[07:04]<drvnd>and I was just setting the History Channel "Revolution" series to record
[07:04]<drvnd>because I need to learn this shit
[07:04]<tml>Davey: heh
[07:04]<drvnd>to pass my citizenship exam
[07:05]<tml>Davey: You'll hear a very different story than what you've heard previously, I'm sure.
[07:05]<drvnd>I know next to nothing about it, so that won't be hard ;)
[07:05]<vmmwno9>tml: you think you could help me with something?
[07:05]<drvnd>they don't teach it in the UK :)
[07:05]<tml>Everyone I know on the other side of the pond tells me they see it very differently over there. :)
[07:05]<zjacspzjw>Davey: the save link isnt working?
[07:05]<tml>tdd1984: Not if you don't ask a question, I can't.
[07:05]<drvnd>Rocksfrow: right click > save as
[07:06]<zjacspzjw>lig when did i yell stella
[07:06]<drvnd>hrm, apache2 musta died
[07:06]<zjacspzjw>...Davey: yes its a bad link
[07:06]<tml>Rocksfrow: o.O
[07:06]<fyr>When you yelled Davey earlier Rocksfrow
[07:06]<vmmwno9>http://pastebin.ca/83833 well there my code i added my pagination, but im getting multiple results see my page here http://74.133.86.131/categories/classifieds/foo.php?type=antiques
[07:06]<tml>Rocksfrow: *Brando* yelled 'Stella!'
[07:06]<tml>Rocksfrow: In "A Streetcar Named Desire"
[07:06]<zjacspzjw>tml: okay
[07:07]<drvnd>works now Rocksfrow :)







