| |
| |
| |
|
Page: 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
Comments:
<0> thats the info for it <1> !tell computersolution about u <2> kodekrash: so there is no way of doing this ? i can point that in that file any line has word TAB word TAB word.. <0> google it if you wish <3> prp: ok, that's easy... <0> !you! <0> :) <1> computersolution: You're an idiot, you know? <4> do you always have to put array() when you need to create one, or can you use some other kind of shortcut to actually avoid the use of the word array? <3> Kronuz: $foo[] = 'array element' <3> Kronuz: its dirty tho <0> im far from an idiot, stormchaser, you dont know me from adam, what gives you the right to make judgements on me? <5> lol <0> i came here for some help <5> oh man look what I started <5> muhaha
<0> if you dont want to give it then that is fine, just say you dont wish to help <0> but dont insult my intelligence <4> kodekrash: what I want is to p*** an array of a mixure of arrays and values to a function, and I wanted to avoid the use of the word array <1> computersolution: I'm great in estimating people abilities. I'm rarely wrong, tho. <0> that is not needed, and truthfully immature <1> 'kay <1> !+g10 <5> just leave an e-mail and we'll send you a quote after we solve it based on the time it took. <6> Guideline #10) We don't support xyz script. We help you *write* PHP, not download and install/hack/use pre-written scripts <0> stormchaser, your wrong this time <4> kodekrash: I guess that won't be possible, is it? :( <5> you're <3> Kronuz: it can be <2> kodekrash: well easy or not.. i can't get it to work <3> prp: I just posted changes to the pastebin -- 596480 <1> prp: Try sledgehamme >:) <1> +r <2> kodekrash: oh, i will take a look now <0> so will someone help with this problem or no, just let me know, so i can move on to a helpful place if not <4> kodekrash: hmm... how? basically doing this: someFunct(array('a',array('b','c'),'d')); <3> computersolution: what's the URL again? <0> if so, then i greatly appreciate it <0> kode, one sec <3> Kronuz: that's pretty much how <0> http://pastebin.com/596451 <3> Kronuz: why is that a problem <1> kodekrash: Doesn't matter... we don't support 3rd party scripts here. <3> Stormchaser: yep, I know <4> kodekrash: oh, but I ment without using the word 'array' so much <3> Kronuz: you have no choice <4> that's what I thought :( okay, thanks :) <5> I told you, leave your email and people will bid on a qquote for it in anonymous action ( : ) ) <0> kodekrash, thanks for the help <5> :o <5> you can just make em leave... a nice kick? <7> i'm designing a users-based site for someone, and the guy wants avatars for his users.. this isn't a proffesional site, just something he wants to play with... kids mostly would be using it, does it make sense, for instead of uploading images - use flickr or photobucket <8> Wow ... This Zend framework is really decent. <4> kodekrash: what if I use ***ociative arrays instead, would I still need to use some word like array()? <7> its 0.1.2.... <3> Kronuz: yes <8> Just don't like that the Smtp transport doesn't support authentication. <4> kodekrash: :( okay, thanks for the help <3> pod: uh, WTF do you think SMTP-AUTH is? <9> hello! does anyone know of a good javascript that allows you to switch between a set of pre-set images on each new refresh on your homepage perhaps? <1> kodekrash: Baking cookies? :) <3> Stormchaser: apparently <1> lol <7> tester0303: too bad for you, this is ##php, not #javascript <3> tester0303: try #javascript <2> kodekrash: i get an Parse error: parse error, unexpected T_STRING <3> prp, on what line <2> kodekrash: 19, the one that starts with fput <3> prp: eh, I'm posting typo correction right now... <3> prp: I hate pastebin... no syntax highlighting on the editor :) <2> :) <5> um <7> kodekrash: that does not deserve an action <7> and makes it harder to read, in some clients <3> itrebal: what? <7> you made that an action, but wasnt an action (or a /me or /action command)
<1> ##php is only on topic like 10% of the time ;) <3> itrebal: it certainly was a /me <7> kodekrash: which is an action <3> Stormchaser: it's pathetic.. <3> itrebal: I have no idea WTF you are talking about... do you? :p <7> kodekrash: when the /me is converted into raw IRC commands, it converts into into PRIVMSG ##php :ACTION(specialcharacter) your_text_here <3> itrebal: I am very familiar with the IRC protocol <7> nevermind then <3> itrebal: do you use ircci (or whatever the hell it is) ? <7> occasionally <1> irssi <3> yeah, that piece of ****e <4> okay, one last question: say I hava an array array(a,b,c,d,e) and that I'm p***ing the first element as the first argument of a function, and I need all the following elements to be treated as an array (without the first element), that is, how can I p*** the elements from 'b' to 'e' as an array as the second parameter of the given function? <7> sometimes i'll use telnet, though <3> Kronuz: php.net/call_user_func_array <1> kodekrash: I like it... I use it, when I can;t use graphical interface <10> itrebal: You forgot the \x01 denoting a CTCP request :) <3> Stormchaser: doesn't mean it's not a piece of ****e :) <7> kuja: i said (specialcharacter) i didnt know the escape code <10> itrebal: Mhm, now ya do :D <11> hey guys <7> kuja: but i wont tomorrow :D <11> I got a question... why is it when I try to create and delete a cookie in the same php script it doesn't work and it does when I make them seperate? <10> itrebal: Stop drinking fool :P <7> hehe <4> kodekrash: okay, the array contains, as its first element, the name of the function... and the following elements are the parameters of the function... how do I send that to call_user_func_array() ? something like: call_user_func_array(arr[0], &arr[1]); ?? <10> Murdoc2k6: When you create a cookie, you'll have to wait for the next page. <3> Kronuz: what you are asking sounds a lot like what I did a few years ago for a text reformatting engine... <2> kodekrash: now i get an Parse error: parse error, unexpected '}' at line 21 in your paste bine <10> Kronuz: call_user_func($array[0], array_slice($array, 1)) <4> kodekrash: that's what I'm doing... sort of: a simple templating engine <3> prp: once again, I blame pastebin <10> Err.. <10> call_user_func_array() <3> Kronuz: you want to look at my code? <4> kuja: wouldn't that have to copy the whole array, making it inefficient? <4> kodekrash: sure :) <11> kuja: I tried to make a page using a form and if a cookie is created it will prompt the user if he/she wants to delete it... but it doesn't work <10> Kronuz: Well then, maybe you should stop creating code that requires it to be used inefficiently, don't you? <10> s/don't/shouldn't/ <4> kuja: although ... does call_user_func_array receive a reference to the array? do functions receive parameters as references? <10> Kronuz: That is dependant on your function, <10> Hm, actually. <10> I'm unsure, but I don't think it takes a reference. <4> kuja: that's why I asked if &arr[1] was possible, 'cause it would give a reference to the array past the first element not making necessary the copy (if it's possible) <10> Kronuz: No, PHP isn't magical =) <4> :( <12> how can i goto one case to another in switch() block ? <12> i cannot remember the right syntax :( <10> Evangelist: `break' <12> kuja, how can i move from one to another with break ? <10> You don't. <10> You can't hop around from case to case. <10> It is linear, you only go down, not up. <3> Kronuz: eh, I can't find the right version of my code... only found an older version that doesn't use that technique :( <12> yes, for going down i know, but i was with some impression that i can use something like goto .. uh, <4> kodekrash: don't worry, thanks anyway <13> Evangelist- no, you can't <3> icky... my code from 8/12/2002 is FUGLY <13> Evangelist- you can't execute more than one case other than dropping to the immediately following case <7> kodekrash: my code from 8/12/2002 took 7 seconds to execute, it was so bad <13> Evangelist- you might consider using magical things called functions to execute the same code in more than one place <4> kodekrash: hey, as a second opinion, do you think that p***ing the reference to the second element of the array as an array would not work? <10> More than one case can result in the same block of code, that's about it. <10> case 'foo': case 'bar': // code <3> Kronuz: might <4> kodekrash: as I said, something like: call_user_func_array(arr[0], &arr[1]); <14> Hi all -- question: Looking for an opensource php solution similar to PHPMyAdmin, but one that can be configured and simplified for non-tech-savvy people to add database content. Any ideas? <3> itrebal: this isn't that bad... http://ibiblio.org/edison/engine/catalog.browse.php <15> hey guys what's the function called that buffers a certain amount of characters.. and can turn '1' into '01' ? <7> kodekrash: it still took many many seconds <2> kodekrash: did you post a new typo ? <3> itrebal: that's ibiblio... not my code <7> kodekrash: ah
Return to
#php or Go to some related
logs:
#debian error while loading shared libraries mythfrontend ubuntu couldn't find package libx11-dev
debian which release oracle for sparc64 running Ubuntu #css gentoo genkernel reiserfs ram0 fsck.reiserfs #web unspecified /dev/hda3 #kde
|
|