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: 1822.68 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
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
Next >
[08:49]<fyr>Gerry: here is the sample config - http://pastebin.com/710877
[08:49]<crv[vd]>this used to work fine under 5.1.2 but under 5.1.4 it dies as above.
[08:49]<crv[vd]>so anyone know why this might be? Warning: mysqli_ssl_set(): invalid object or resource mysqli in blah.php on line 5
[08:50]<crv[vd]>or below as the case may be
[08:50]<zufn>$return =& $this->settings[$arg1]; $return =& $return['arg2'] or something creepy like that :D Not much use I know :)
[08:50]<fyr>Gerry: output will be the values of the settings
[08:51]<gnzzd>lig: But won't parse-ini do that?
[08:51]<fyr>sure - but I need it in an object
[08:52]<eyzau>$o = (stdClass)$array ?
[08:53]<fyr>that went took quick zircu - say again
[08:53]<gnzzd>$this->inifile = parse_ini_file($file, TRUE);
[08:53]<fyr>done in the constructor
[08:54]<eyzau>otherwise you'll need to to make a class that iterates the values from the ini and assign the values
[08:54]<fyr>Gerry: here is the class in its entirity - http://pastebin.com/710882
[08:55]<gnzzd>sure - but I need it in an object ... $this->inifile = parse_ini_file($file, TRUE); .... done in the constructor
[08:55]<gnzzd>what am I missing?
[08:55]<fyr>hehe - the fact that I can't get to it... :D
[08:56]<gnzzd>Why not?
[08:56]<fyr>That is what I am asking :D
[08:56]<gnzzd>print_r($this->settings);
[08:57]<gnzzd>AHHH I SEEE!!!
[08:57]<gnzzd>heh
[08:57]<gnzzd>make $settings public
[08:57]<gnzzd>^is that what you mean?
[08:58]<fyr>made public - still same error
[08:58]<zufn>I know the problem just not the cure :(
[08:58]<eyzau>lig, what does var_dump(parse_ini_file($file, TRUE)); say?
[08:59]<zufn>Maybe it's just impossible to do what you're trying, lig
[08:59]<eyzau>lig, what is $file?
[08:59]<zufn>I can't see a way to force it to do what you're trying though still playing with some code :)
[08:59]<fyr>file is a little config file zircu
[09:00]<eyzau>lig, but what is the actual $file passed
[09:00]<fyr>vardump of parse - array(3) { ["test"]=> string(1) "1" ["first_section"]=> array(3) { ["one"]=> string(1) "1" ["five"]=> string(1) "5" ["animal"]=> string(4) "BIRD" }["second_section"]=> array(2) { ["path"]=> string(14) "/usr/local/bin" ["URL"]=> string(32) "http://www.example.com/~username" } }
[09:00]<hzzys>Hello
[09:00]<eyzau>lig ok, so your
[09:01]<hzzys>What's the difference between the Server API 1) Aapche 2.0 Handler and 2) Apache (is apache 1.3.34)
[09:01]<eyzau>$this-settings['test'] should result with something
[09:01]<fyr>it does - 1 is echoed out
[09:01]<zufn>I think you're missing her problem :)
[09:01]<jddddd>Haris try #apache
[09:01]<eyzau>Zule: i think so to
[09:02]<gnzzd>ahh I see where you are trying to access it. Yeah no need to make it public.
[09:02]<hzzys>Jymmmm: They seem to ... not know or understand my Q: what is Server API
[09:02]<zufn>I know the problem, but can't explain it, nor know how to fix it :D
[09:03]<hzzys>Zule: Try try try, that's the way to do it.
[09:03]<fyr>makes you want to bang your head doesn't it
[09:03]<gnzzd>above the echo $this->settings['test']; line put print_r($this->settings);
[09:03]<zufn>The variable is fine. That's not the problem.
[09:03]<hzzys>Jymmmm: Thanks for confirming its not a php thing.
[09:04]<eyzau>Haris: it is just a way php and apache communicate with each other
[09:04]<fyr>the file is being passed and read into the class var... but when I go to access it using the dynamnic call ($this->$depth) it gets lost
[09:04]<gnzzd>above the echo $this->settings['test']; line put print_r($this->settings);
[09:05]<c777>Quick Poll: Anyone here genuinly interested in helping with an open source site statistics/traffic analyzer?
[09:05]<eyzau>quick answer: no
[09:05]<gnzzd>ohh I see you have, nm
[09:07]<zufn>I'm going to stick by the horrible reference idea
[09:08]<fyr>The only problem I have with that Zule is that I don't really want to pass the actual object - just a copy of the values in the setting var of the calss
[09:08]<vxdcj>greetings yall
[09:08]<zufn>You won't pass the actual object when you get to the return
[09:08]<eyzau>hmm
[09:08]<zufn>As far as I know php doesn't pass something as a reference unless told to?
[09:09]<vxdcj>yeah
[09:09]<zufn>It's worth a shot maybe
[09:09]<zufn>I can't think of any other way to do it :(
[09:09]<eyzau>Zule: that sort of depends on wich php you have and how you define reference
[09:09]<jddddd>!+kiss
[09:09]<lxl-2jv>[KISS] Keep It Simple Stupid. Why overthink things?
[09:09]<eyzau>lig: no hard coding crap...
[09:09]<vxdcj>!+class
[09:09]<zufn>a reference, err, a link to something else
[09:10]<vxdcj>mmm ...
[09:10]<fyr>thyko: to get a message from the bot - /msg him
[09:10]<zufn>so if you set $var = 'blah' it changes whatever $var is actually referenced to
[09:10]<zufn>My brain is fuzzy :)
[09:10]<eyzau>Zule: well, i was refering to the way php5s objects are delt with. but that is another topic
[09:11]<zufn>I believe it always passes things prefixed with $this as a reference, within the class
[09:11]<zufn>( another reason I hate it )
[09:12]<gnzzd>lig: don't give up yet
[09:12]<fyr>hell no - only 2 days on this - still have another week to go ;)
[09:15]<fyr>hehe - the worst part is I keep looking at it going... it should work..
[09:17]<gnzzd>and I think it is
[09:17]<pjffyvr>lig: Still having email woes?
[09:18]<fyr>naa - not today.. just a simple config class that won't do what I damn well tell i t to :)
[09:18]<fyr>I admit to being an OO baby
[09:18]<jddddd>sounds like enygma's last date
[09:19]<fyr>hey - he's married now - so he has to do what his date says now (assuming it is his wife) ;)
[09:19]<djjsnd>what's the default timeout time in sessions 900?
[09:20]<jddddd>Pollita: Hey, have you seen TML's beaver?
[09:23]<pjffyvr>...
[09:23]<pjffyvr>He told you about that?
[09:23]<pjffyvr>I thought that was something special
[09:23]<pjffyvr>between us...
[09:25]<gnzzd>lig: http://www.mirc.net/paste/?699
[09:25]<hzzys>Hello,
[09:25]<hzzys>I have this from cpanel forum, where I posted a thread; If you load up a standard phpinfo(); page, does the Server API say Apache or CGI? If Apache, you do not have phpsuexec, if CGI, you do. Depending on what you have, you should recompile again using that option. I want to know what is the difference between different server api
[09:26]<gnzzd>lig: This is the output... $this->settings['test'] = 1
[09:27]<fyr>understood Gerry.. but I need the getSetting to have access to the objects setting var..
[09:27]<hzzys>What are the advantages, disadvatages of having phpsuexec or CGI
[09:27]<pdznsvzvz>Haris: don't use phpsuexec
[09:27]<fyr>Gerry - I know it is loading - it is the accessing that is kicking my butt :D







