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-19
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
Next >
[05:19]<cryggrvyjg>i'm gonna see if i can xpath it
[05:19]<cryggrvyjg>thnx
[05:19]<rrdrdr>lie-low
[05:19]<myjrjo7>kainnation, i did it on the fly so it probably does not work but can be done somehow...
[05:19]<cryggrvyjg>thnx
[05:20]<ceredtuw>Dov-work, why would you need a multidimensional array?
[05:20]<djv-wjzc>CrazyTux, I need to pull out results from a query accordingly and manipulate it in html.
[05:21]<ceredtuw>Dov-work, and what is the problem?
[05:22]<djv-wjzc>I'm getting ALL of the results displayed everytime I run the statement.
[05:22]<ceredtuw>Dov-work, link me to your code
[05:23]<krdvfdgq009>what is the regex to see if a string contains anything besides a-zA-z0-9 and _ ?
[05:23]<djv-wjzc>CrazyTux, http://pastebin.com/717611
[05:23]<ceredtuw>Kaitlyn2004, [a-zA-Z0-9_]
[05:24]<krdvfdgq009>CrazyTux, I can also just do [a-z0-9_] with /i right?
[05:24]<ceredtuw>Yes
[05:24]<jrdggjwq1>Kaitlyn2004: or you can use \W depending on how pick you want to get.
[05:24]<gydl_>CrazyTux: actually, it would be [^a-zA-Z0-9_] would it not? Kaitlyn2004 is looking for anythin EXCEPT a-zA-Z0-9_
[05:25]<myjrjo7>CrazyTux, what's faster? a-zA-Z or /i ?
[05:25]<tjufgg>diogo86: ... do you really understand "faster"
[05:25]<ceredtuw>Gimp_, oh; you're right use gimps.
[05:25]<myjrjo7>Touqen, what you mean?
[05:25]<tjufgg>diogo86: You asked which is faster, but do you really understand "faster" in the context of regex matching?
[05:25]<krdvfdgq009>Gimp_, CrazyTux: well what I want is if it contains something BESIDES a-zA-Z0-9_, then it is invalid... so what would I use?
[05:25]<ceredtuw>ahh I'm still hung over a bit -- so ignore my ignorance :)
[05:26]<tjufgg>Kaitlyn2004: You can use both.
[05:26]<gydl_>Kaitlyn2004: use what i just told you. [^a-zA-Z0-9_] will match anything EXCEPT a-zA-Z0-9_
[05:26]<tjufgg>If it matches the first one then it is valid, if it matches the second then it isn't valid
[05:26]<myjrjo7>Touqen, i think faster is what evaluates the expression in less time with less cpu...
[05:26]<ceredtuw>Dov-work, dosen't load...
[05:26]<djv-wjzc>Pastebin doesn't load?
[05:26]<jrdggjwq1>Kaitlyn2004, [a-zA-Z0-9_] would match any single a-zA-Z0-9_ string, its not what you want, you want [^a-zA-Z0-9_] which means "^" NOT includes.
[05:26]<krdvfdgq009>sooo: if (ereg("[^a-zA-Z0-9_]", $string)) echo 'INVALID'; ???
[05:26]<tjufgg>diogo86: less cpu what?
[05:27]<gydl_>Kaitlyn2004: exactly.
[05:27]<krdvfdgq009>okay
[05:27]<myjrjo7>^[^a-zA-Z0-9_]*$
[05:27]<tjufgg>diogo86: Don't answer I'm just being picky.
[05:27]<djv-wjzc>CrazyTux, weird, I'l repatse it somewhere else.
[05:27]<tjufgg>Either way, the difference (though I seriously doubt there is any) is humanly imperceptible.
[05:27]<myjrjo7>Touqen, i don't know what verb to use with cpu "taking" :P
[05:27]<tjufgg>cpu cycles
[05:28]<xnfyjstnax>How can i add a LIB during linkage
[05:28]<myjrjo7>thanks :)
[05:28]<djv-wjzc>CrazyTux, http://rafb.net/paste/results/mSFWS740.html
[05:28]<tjufgg>HeliosTech: and this question relates to php how?
[05:28]<xnfyjstnax>Touqen in php compilation
[05:29]<tjufgg>HeliosTech: configure/makefile take care of that for you
[05:29]<myjrjo7>HeliosTech, usually you .configure --with-specifc-library bundle or you phpize the library later on as a shared object.
[05:29]<cnsvrs>anyone here use zebd platform?
[05:29]<cnsvrs>zend
[05:29]<krdvfdgq009>diogo86: why the extra ^, and *$?
[05:29]<ceredtuw>Dov-work, what do you mean by its duplicating each time?
[05:30]<ceredtuw>Dov-work, you're taking column location, exploding it into an array......
[05:30]<cyrrajcyr>ok
[05:30]<myjrjo7>Kaitlyn2004, $str = ".-*&#AAAA999@@@"; // i think the regex whitout ^$ gets true because AAAAA999 matches...
[05:30]<djv-wjzc>CrazyTux, yeah. I'm probably not going the right way about it.
[05:30]<xnfyjstnax>diogo86 it's a static one
[05:30]<xnfyjstnax>so it's in linkage phase
[05:30]<cyrrajcyr>Can someone help me with something?
[05:30]<ceredtuw>Dov-work, tell me exactly what you're trying to do; and I'll give you a hand.
[05:31]<cyrrajcyr>a little complicated i would guess
[05:31]<tjufgg>Kaitlyn2004: don't ask to ask
[05:31]<tjufgg>kingjokin: don't ask to ask
[05:31]<tjufgg>Kaitlyn2004: ignore that
[05:31]<jrdggjwq1>diogo86, yours would match the first letter on a line.
[05:31]<tjufgg>HeliosTech: either way configure/makefile should take care of that for you
[05:31]<krdvfdgq009>diogo86: no that gets invalid.. with what I used before
[05:31]<cyrrajcyr>ask to ask. i was just seeing if anyone wanted to help me out
[05:31]<myjrjo7>don't ignore it Kaitlyn2004! it was a wise advice!
[05:32]<tjufgg>Jameno123: that's only when ^ is not inside a char class
[05:32]<ceredtuw>kingjokin, ask your question; maybe someone will.
[05:32]<tjufgg>kingjokin: You're asking to ask basically.
[05:32]<myjrjo7>Jameno123, mine would match the whole line and the whole line only.
[05:32]<tjufgg>Because if noone said they would help you then you wouldn't have asked your question.
[05:32]<cyrrajcyr>I was wondering if anyone knew any good resources on how to work with relational databases
[05:32]<xnfyjstnax>Touqen if i ask it's because he doesn't
[05:32]<djv-wjzc>CrazyTux, ok. I have a database with 2 tables. Table 1 is relational via id to table 2. Currently, there are 4 rows which match the id for a particular item in table 1. I need to display the images(field) in the page and place them accordingly.
[05:33]<jrdggjwq1>diogo86, correct, he's just wanting to match any single character
[05:33]<tjufgg>HeliosTech: What are you trying to link that configure doesn't account for?
[05:33]<ceredtuw>Dov-work, so basically for 1 item, there are four pictures?
[05:33]<jrdggjwq1>so [^a-zA-Z0-9_] would be proper, it would match any single char anywhere within the passed string.
[05:33]<djv-wjzc>CrazyTux, we can say there are 4. I don't think the actual number matters.
[05:34]<ceredtuw>Alright, one second.
[05:34]<myjrjo7>Jameno123, right! i misunderstood with [a-zA-Z0-9_] , the opposite
[05:34]<jrdggjwq1>diogo86, ;)
[05:34]<xnfyjstnax>Touqen i none php external lib
[05:34]<djv-wjzc>CrazyTux, and assume $row2 is correct (I can display it if you like).
[05:34]<myjrjo7>Jameno123, so it'd be necessary to have ^$ to ensure that part of the string would be matched
[05:34]<xnfyjstnax>-lmygcc
[05:34]<ceredtuw>Dov-work, and your query is pulling fine, correct?
[05:34]<djv-wjzc>CrazyTux, yes.
[05:34]<ceredtuw>Dov-work, yea, link me
[05:34]<djv-wjzc>Ok.
[05:34]<xnfyjstnax>just adding this line
[05:34]<tjufgg>HeliosTech: Okay now again in english.
[05:35]<xnfyjstnax>just adding -lmygcc during linkage
[05:35]<cyrrajcyr>Any thoughts
[05:35]<tjufgg>HeliosTech: but why?
[05:35]<xnfyjstnax>cause it fails i don't know why
[05:35]<djv-wjzc>CrazyTux, http://rafb.net/paste/results/Oz3r3K28.html







