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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-22
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
Next >
[17:03]<guffsdsq>Well the current is..
[17:03]<guffsdsq>("SELECT COUNT(*) as Num FROM onlineusers, users where onlineusers.ou_user = users.email")
[17:04]<guffsdsq>So I would say..
[17:04]<guffsdsq>add the two variables ?
[17:04]<guffsdsq>oops ,0); < at the end
[17:04]<tjufgg>Don't answer with a question.
[17:04]<tjufgg>Give me a definite answer.
[17:05]<byrpjjv___>where can i learn easyly to make an member space with groups?
[17:05]<guffsdsq>("SELECT COUNT(*) as Num FROM onlineusers, users where onlineusers.ou_user = users.email AND $field2 LIKE '$search2%'"),0);
[17:06]<tjufgg>nullsys2: What is the ,0 for?
[17:06]<tjufgg>nullsys2: nevermind
[17:06]<guffsdsq>lol
[17:06]<tjufgg>okay, does it do what you expect of it?
[17:07]<guffsdsq>No, without the variables. And no, with the variables
[17:08]<tjufgg>nullsys2: Are you looking at the value of $total_results?
[17:08]<guffsdsq>I don't understand. Value would be .... if 4 people logged in ( 4 results from query )....then the value would be 4. Due to it being converted via count an num
[17:08]<guffsdsq>right?
[17:09]<rnmacn>you need to get the value of 'Num' from the first row of results
[17:09]<tjufgg>RedACE: He does.
[17:10]<guffsdsq>Right. ok, how do we proceed to do that?
[17:10]<mnzm-n-wjzc>anyone with experience with magpie rss parser able to tell me how to access these sort of tags <yweather:location city="Pompano Beach" region="FL" country="US" />
[17:10]<tjufgg>Okay. Does the total you get match what you'd expect for the total number of results from the first query?
[17:10]<mnzm-n-wjzc>i can get to title and description easy with $href = $item['link'];
[17:11]<mnzm-n-wjzc>err title link description etc. they have <title> </title> but for some reason i can't get the other type of tags
[17:11]<tjufgg>Dead-N-Work: You should really be asking the magpie people but you probably need to set something regarding namespaces
[17:12]<guffsdsq>hmm
[17:12]<guffsdsq>Well, I have no way of knowing if it matches. Since its just displaying all the queries.
[17:13]<guffsdsq>all the results*
[17:13]<tjufgg>?
[17:13]<tjufgg>You should be able to look at your db and know what you should expect from the first and second queries
[17:13]<guffsdsq>Well, since its displaying all the results on the page. I have no way of knowing if its doing its job. Its meant to limit 2 per page, but its showing all results on 1.
[17:14]<tjufgg>And you have your limit clause in the first query right?
[17:14]<gnvvd>i got a big performance issue with a lib i use, actually the time the function generationCollection takes is getting higher and higher depending on how many datasets i got. With Zend Profiler i see that at first it needs 0.01% for a dataset and later up to 0.1% of the call. the code of the lib is here: http://paste.debian.net/7882
[17:14]<tjufgg>actually, that's not even important right now
[17:14]<gnvvd>probably someone got a hint why the resource need is getting so high
[17:14]<guffsdsq>no, I took it out
[17:14]<tjufgg>The important part is whether the second query's results matches the total number of results you'd expect from the first query
[17:14]<tjufgg>That's all we are looking for right now.
[17:14]<gnvvd>oh better take this one ;) with highlighting: http://paste.debian.net/7883
[17:15]<2yffr2jrr>does anyone know a good simple package to have a group of people share/upload/download documents ?
[17:15]<guffsdsq>ok well heres what I can tell you...
[17:15]<guffsdsq>The first query displays all results. The second query seems to be doing the same ( they are both on the same page, the second is meant to limit them to a set ammount per page ). Its not doing what its meant too.
[17:16]<tjufgg>No NO NO
[17:16]<guffsdsq>so, yes, its displaying the results matched in total from the first query.
[17:16]<tjufgg>PAY ATTENTION
[17:16]<tjufgg>I just want A yes or no if you are getting the COUNT that is EQUIVALENT to the number of matches that you'd expect from the first query.
[17:16]<tjufgg>whoops
[17:16]<tjufgg>Sorry.
[17:16]<tjufgg>I'm being weird
[17:16]<tjufgg>Anyway.
[17:16]<gnvvd>lol ;)
[17:16]<dzzznzdjusn>hah
[17:17]<tjufgg>Try to create a query which you know only has 1 or two results and see if it works.
[17:17]<guffsdsq>hmm
[17:17]<guffsdsq>yes
[17:17]<guffsdsq>I know how many should display, an yes, they are being.
[17:18]<tjufgg>Uh.
[17:18]<tjufgg>But you were saying before that it wasn't returning what you were expecting.
[17:18]<guffsdsq>tougen
[17:19]<tjufgg>touqen
[17:19]<guffsdsq>ill pm your the url an you can see
[17:19]<guffsdsq>it will clear it up
[17:19]<tjufgg>okay
[17:22]<ajadvus>Does php support 64bits systems? (And not in a hackish kind of way .. ie. can you have an 5GiB string?)
[17:22]<vxn-nzd>what is tor?
[17:23]<myjrjo7>Cocytus, i guess it's a matter of 5gb or more of RAM
[17:23]<v-svzzv>Hey, quick question.. i know short tags are a no-no but these WILL be supported in the future (php7+) right ?
[17:23]<vxn-nzd>what's a short tag?
[17:23]<vxn-nzd>I guess I'm outta the loop.
[17:24]<v-svzzv><?=(10-5)?>
[17:24]<myjrjo7>T-Start, people say it wont be supported in php 6
[17:24]<v-svzzv>seriously ? :-|
[17:24]<vxn-nzd>oh like <?=$var?>
[17:24]<v-svzzv>y
[17:25]<vxn-nzd>I think you can turn those off so I never program that way. ... always do it the long way <?php echo $var; ?>
[17:25]<v-svzzv>so i'd have to use <?php echo (10-5); ?> everywhere ??
[17:25]<v-svzzv>jeesh :-(
[17:25]<2ggvj20w>that's not the long way, it's the in-between way
[17:25]<myjrjo7>T-Start, yeah! this rocks :D
[17:25]<wsv>Touqen: Regardning the non-functioning apd zend extension: I have tried both installing it with "pecl install" and compiling it from source. In both cases an entry is pushed to the apache error log, claiming that the apd.so is not a real php library. :-(
[17:25]<2ggvj20w>the long way is <?php print(10-5); ?>
[17:25]<v-svzzv>i've got a few thousands of scripts with tons of short tags :-
[17:26]<2ggvj20w>regex is your friend T-Start
[17:26]<tjufgg>xst: Are you using the correct zend_extension line in php.ini?
[17:26]<2ggvj20w>if $variable_test =& new class(), how can I display '$variable_test' within a method in the class?
[17:27]<wsv>Touqen: I think, cause I also use memcached.so and that one does not complain.
[17:28]<vxn-nzd>bentob0x: ... if it's inside the class wouldn't it be $this ?
[17:29]<rnmacn>I think he wants to print the name of the variable
[17:29]<vxn-nzd>bentob0x: If I get your question print_r ($this); would display it... you could also use var_dump .. or is it vardump()
[17:29]<vxn-nzd>oh the name ... hmmm
[17:30]<2nnzmnfdvnzdrud>I have a site, when I get to it, it creates a session with the IP of the person, anyone know why it is when I click a link, the session is blank?
[17:30]<2nnzmnfdvnzdrud>could it maybe be the way the links are brought up or something? cause the links are with `get` variables
[17:30]<2nnzmnfdvnzdrud>like href="?LID=this&var=that"
[17:31]<vxn-nzd>beerdeliveryguy: are you sure you're doing a session_start() ?
[17:31]<myjrjo7>beerdeliveryguy, did you session_start(); on every link?
[17:31]<vxn-nzd>lol
[17:32]<2ggvj20w>it's neither print_r nor var_dump :'(
[17:32]<vxn-nzd>bentob0x: If you really want to know what the name of the variable is $variable = &new class('variable');
[17:33]<2ggvj20w>I have thought about that but I don't really want to do that
[17:33]<ymj>







