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-14
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
53
Next >
[22:58]<vznd2d>k&r's the winner
[22:58]<vznd2d>i do that.
[22:58]<n-xnrm>I am doing some SQL queries, but I don't think the changes are taken place fast enough. I do some queries, then load the page. It looks like nothing has changed, but on a refresh stuff has changed.
[22:58]<tjufgg>Though I don't know how php handles closures all that well.
[22:58]<||aw>lilo: you might be interested to know that solka is privmsg spamming again
[22:58]<n-xnrm>Do I need to FLUSH the tables ?
[22:58]<tjufgg>e-head: no
[22:58]<txzzzzdjdzvzzzzz>Shadowhand: I use K&R but also have a very specific expression format that wikipedia doesn't mention.
[22:59]<tjufgg>You are probably querying in the wrong order
[22:59]<n-xnrm>I swear I'm not!
[22:59]<tml>Is anyone else getting messages from solka ?
[22:59]<wjlllrws>nuh-uh
[22:59]<||aw>TML: yes
[22:59]<n-xnrm>I do the changes first, then query to get the results.
[22:59]<||aw>earlier today as well
[22:59]<n-xnrm>It looks like nothings changed.
[22:59]<n-xnrm>PHP doesn't continue on to the next statement before the SQL query completes does it ?
[22:59]<||aw>e-head: what dataabse
[22:59]<rcudr>what I am trying to do is to get information in the middle of a page without having to echo a variable... cuz it wouldn't allow me to do all the dynamic stuff... is there another way to do that?
[23:00]<tjufgg>e-head: No. It's synchronous.
[23:00]<n-xnrm>It's a MySQL IyISAM db.
[23:00]<n-xnrm>MyISAM rather.
[23:00]<rcudr>the simple way seemed to be a function that I would redeclare every time for each instance of a specific bloc
[23:00]<||aw>e-head: that is definatly sync, post sample code?
[23:00]<n-xnrm>Sure.
[23:01]<rcudr>but it seems like I can't redeclare functions...
[23:01]<tjufgg>Akuma: Why can't you just do whatever you need to when you need it...
[23:01]<tjufgg>I don't understand for what reason you'd need to redefine a functin.
[23:01]<vznd2d>Akuma: maybe have two functions, named differently?
[23:01]<rcudr>cuz I am using a template that is on a separate file
[23:01]<tjufgg>s/cuz/because/
[23:01]<||aw>Akuma: so don't output he template till you are done
[23:02]<rcudr>the thing is that I need to call the template more than once on each page
[23:02]<rdvxzrwff>Akuma: you're doing it wrong!
[23:02]<rcudr>and each time I want to add different stuff to it
[23:02]<cjmd`>does anyone know if it is possible for me to setup a local install of the php documentation so I can go to localhost/phpdocs/function ? I'm leaving for vacation and this would be handy
[23:02]<||aw>!tell Alexendra about g9
[23:03]<txzzzzdjdzvzzzzz>Akuma: In the template use if(!function_exists('function_name')) { function function_name() { /* ... */ } }
[23:03]<tml>Cody`: You could, but it's not trivial.
[23:03]<txzzzzdjdzvzzzzz>Akuma: And put it at the beginning rather than the end
[23:03]<zxnzvnz>Akuma is there a reason you need to redeclare functions?
[23:03]<tml>Cody`: Better would be to download the PDF or CHM version.
[23:03]<zxnzvnz>maybe you'd be happier with objects and their methods?
[23:03]<||aw>Akuma: that should not be a problem. at least, it hasn't been a problem with templates I've used
[23:03]<zxnzvnz>TML: the extended chm version of the php manual has some bugs for me
[23:03]<n-xnrm>okay .... http://pastebin.ca/88322
[23:04]<tml>cheater: You should file them.
[23:04]<dzzznzdjusn>Cody`: http://www.php.net/download-docs.php
[23:04]<rcudr>cheater: yes: I have a php file that I am including more than once that makes a call to a function, and I would like this file to display different info every time depending on my needs
[23:04]<n-xnrm>Basically, I mark several items read in the database (markPageRead section).
[23:04]<n-xnrm>Then I fetch the unread items.
[23:04]<tjufgg>Akuma: So why not pass parameters to this function?
[23:04]<zxnzvnz>TML: namely, when there are variables listed that are used in a function, their names don't show up (only the descriptions)
[23:04]<tml>Dangermouse: That doesn't include the SQLite stuff to make 'php.net/foo' work.
[23:04]<zxnzvnz>TML: where and how? can i post a screenshot too?
[23:04]<cjmd`>TML: I don't care how trivial it is, I'll put the time in to get it setup nicely
[23:04]<n-xnrm>The unread items are fetched with $hl =& $headlineservice->getHeadlines()
[23:04]<txzzzzdjdzvzzzzz>Touqen: That's not the problem, the problem is that the file gets included more than once
[23:04]<tjufgg>Alexendra is spamming
[23:04]<zxnzvnz>Akuma: that sounds like an IF block.
[23:04]<tml>cheater: bugs.php.net
[23:04]<||aw>Akuma: change the contents of the include to a function then call the function to display
[23:05]<zxnzvnz>tml: i'll do
[23:05]<n-xnrm>Problem is, it fetches read and unread items. On a page refresh it looks fine.
[23:05]<wjlllrws>Alexendra: Stop it.
[23:05]<dzzznzdjusn>TML: Oh..
[23:05]<tml>13:03 -!- alindeman ##PHP User is immune from kick/deop
[23:06]<dzzznzdjusn>lol
[23:06]<wjlllrws>ha?
[23:06]<wjlllrws>hehe
[23:06]<eyzau>stupid overflow...
[23:09]<n-xnrm>Sorry. The bug was elsewhere.
[23:10]<rfygdgdrg>Hehe
[23:10]<wjlllrws>alindeman: I like that "deop" part best :)
[23:10]<rfygdgdrg>You could use Chanserv to deop me if you wanted to, heh
[23:10]<tml>alindeman: I didn't even notice you were here until that.
[23:11]<rfygdgdrg>Haha
[23:11]<tml>been so long since I heard you say anything =)
[23:11]<wdrrvs_>is there anywhere the PHP settings might be stored other than php.ini?
[23:11]<wdrrvs_>I'm trying to turn on error messages...
[23:11]<tml>wycats_: php.net/configuration
[23:12]<tml>wycats_: In short, quite a few places.
[23:12]<wjlllrws>alindeman: o.O chanserv can't deop you!!!
[23:12]<wdrrvs_>if I'm using vhosting, might there be a php setup file in each vhost?
[23:13]<tml>Wolfpaws: Just pray to whatever gods you worship he never snaps. :)
[23:13]<yvzn2rf>hehe
[23:13]<tml>wycats_: Certainly. You should probably contact your hosting provider.
[23:13]<wdrrvs_>it's a box I have root access to with Plesk
[23:13]<yvzn2rf>php_flag and php_value is what you want, porbably
[23:14]<wjlllrws>TML: Then we all get gratis k-lines :)
[23:15]<tml>ha!
[23:15]<wdrrvs_>I'm getting a totally blank screen
[23:16]<wdrrvs_>when I try loading the php files
[23:16]<tml>Wolfpaws: "gratis k-lines". I like that...oh so prim and proper.
[23:16]<yvzn2rf>haha
[23:16]<wjlllrws>hehe
[23:16]<tml>wycats_: Honestly, this is why you pay a bill to your hosting provider. Contact them.
[23:16]<wdrrvs_>can't
[23:16]<wdrrvs_>work for someone who can contact them
[23:16]<wdrrvs_>he's not around :(







