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.66 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:26]<zufn>That doesn't really make much sense to me. I can see you're assigning stuff to $depth above ' $depth .= '["'.$arg.'"]';' etc. So that's a local variable rather than a class one
[08:26]<zufn>So am I :)
[08:27]<mfjgn>can anyone help me with that? :)
[08:27]<fyr>here is the output - top has a print_r of the settings array, middle has a vardump of the object bottom has the actual error - $settings holds:
[08:27]<fyr>^^http://pastebin.com/710852
[08:28]<jnnnc>what sites would you guys recommend for php tutorials?
[08:28]<gnzzd>There might be a good reason to build a "[][]" string for declaring an multi dimensional array, but it would be very rare.
[08:28]<gnzzd>php.net
[08:28]<jnnnc>ok
[08:28]<fyr>google
[08:28]<jnnnc>i know but they're are a lot of sites and was wondering what you guys recommended...........
[08:29]<gnzzd>I find just about everything in the php.net comments
[08:29]<zufn>php.net
[08:29]<gnzzd>on the man pages I mean
[08:29]<jnnnc>ok
[08:30]<fyr>Jezek: check out the php.net links list
[08:30]<jnnnc>mkay
[08:30]<fyr>*sigh* I'm over thinking this - aren't I
[08:30]<zufn>Well I'd have thought there would be an easier way to do it..
[08:31]<fyr>hehe - thought my way wasn't too bad until I hit the error :D
[08:31]<zufn>I'm still not even sure what you're trying to return on that line, so perhaps I'm dumb today =)
[08:31]<zufn>( and everyday day )
[08:32]<gnzzd>I get what you are trying to do (I think) but not why you are doing it.
[08:32]<zufn>Oh, I think I may get it now too :)
[08:33]<gnzzd>I was hoping you would show the code that used that generated string.
[08:33]<zufn>And maybe a way to do it, dunno, I'm going to test something
[08:33]<gnzzd>So I could see why exactly you needed it.
[08:33]<sydjgdjzpdrg>Anyone know what the opposite of || is? Here's the code I want to make do the opposite: <?php /* IF THIS IS NOT THE FRONT PAGE, BUT COULD BE A "PAGE" OF THE FRONT PAGE */ if ( !is_home() || is_paged() ) { ?>insert this text<?php } ?>
[08:33]<fyr>hold on - I can post the test script
[08:33]<gnzzd>&&
[08:33]<djjsnd>&&
[08:33]<djjsnd>|| OR
[08:33]<djjsnd>&& AND
[08:34]<fyr>Gerry: here is the test script - http://pastebin.com/710859
[08:34]<sydjgdjzpdrg>thanks guys
[08:35]<zufn>Lig....
[08:35]<zufn>Try return $this->{$depth};
[08:35]<fyr>Zule: did - same error
[08:36]<zufn>Boo, that worked for me on a similar kind of crazy example on localhost :(
[08:36]<djjsnd>{["$depth"]}
[08:37]<mfjgn>How to simplify this please? :) http://pastebin.com/710860
[08:37]<fyr>moosey: then I have brackets in brackets... the brackets are already built in
[08:37]<djjsnd>if (!$message) {
[08:38]<mfjgn>i mean line 2-6 in fact :p
[08:38]<djjsnd>well do that on line 1 please :)
[08:38]<gnzzd>This might take me a while to nut it out.
[08:38]<fyr>or use empty or trim before the check
[08:39]<fyr>I do appreciate it Gerry
[08:39]<mfjgn>i don't know what is the simplified replaced value
[08:39]<djjsnd>but you can make an array of your search/replaces
[08:40]<djjsnd>then just need to run it thru once, it will replace with the replace array what matches your search array
[08:40]<mfjgn>eval("if (!\$message) \"\\\\\1";")
[08:40]<mfjgn>array to replace is faster?
[08:40]<mfjgn>oh thanks
[08:41]<mfjgn>my code seems like hardcoded
[08:42]<gnzzd>lig: you do know about http://jp.php.net/manual/en/function.parse-ini-file.php right?
[08:43]<fyr>yeah Gerry - that is what I am using in the constructor for now to read the config file into the classes settings var
[08:43]<gnzzd>Just checking
[08:43]<fyr>$this->settings = parse_ini_file($file, TRUE);
[08:43]<gunsv9tq19>hi
[08:43]<gunsv9tq19>can someone give me a link where i can fully learn php?
[08:44]<mfjgn>php.net
[08:44]<fyr>:D
[08:44]<gunsv9tq19>i'm already there
[08:44]<gunsv9tq19>lol
[08:44]<gunsv9tq19>thats why i came here
[08:44]<eyzau>Guest45234: um... what did you say?
[08:44]<mfjgn>lots of examples for me to learn already lol
[08:44]<gunsv9tq19>i found 2 or 4 tutorials on that site
[08:45]<gunsv9tq19>anyone have a good direct link for me?
[08:45]<eyzau>Guest45234: well, i think i found a link that explains how the universe exists as it is
[08:45]<fyr>Guest45234: start reading at the beginning and work your way through - don't forget user comment
[08:45]<gunsv9tq19>yeah
[08:45]<gunsv9tq19>where is the begining/
[08:45]<gunsv9tq19>lol
[08:45]<eyzau>the begining is at the end
[08:46]<fyr>http://www.php.net/manual/en/
[08:46]<gunsv9tq19>thank u
[08:46]<fyr>or what ever lang you prefer
[08:47]<zufn>lig: Don't suppose you've conisdered the evil called eval? *ducks*
[08:47]<gunsv9tq19>so would i start from
[08:47]<gunsv9tq19>Table of Contents
[08:47]<gunsv9tq19>Preface
[08:47]<gunsv9tq19>?
[08:47]<fyr>lol
[08:47]<eyzau>void
[08:47]<gunsv9tq19>i'm a newbie, and if u laugh @ me, it just makes you look foolish
[08:47]<fyr>can honestly say I have never used eval before
[08:47]<gunsv9tq19>i'm asking questions that aren't easy for me
[08:47]<gunsv9tq19>preface would be #1?
[08:48]<zufn>Eval is generally evil...
[08:48]<mfjgn>i agree
[08:48]<fyr>understood Zule - that is why I avoid it if I can
[08:48]<gnzzd>lig: ok here is a better way.... pastbin the ini file and the output that you want
[08:48]<mfjgn>but who can help me? lol
[08:49]<mfjgn>or just use the long 6 lines really?
[08:49]<2r2j>Zule: no, I mean ... to turn 1154543131 into 'today' or 'yesterday' for eg..
[08:49]<zufn>lig: Maybe you could use references somehow?
[08:49]<fyr>Hmm
[08:49]<2r2j>there doesn't seem to be anything in date which will do it ...







