@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21



Comments:

<0> =)
<1> TML ?
<0> Provide an +e(xemption), not a +v(oice)
<2> Hi - how do something randomly in php
<1> TML and v would make the exception?
<0> ReTaLiAToR: Open a text editor and start pounding keys with your forhead.
<1> wont
<0> Jymmm: +v actually gives some rights
<1> ah
<3> TML: Do you know what kind?
<2> er
<3> IIRC, voice is just harmless voice
<4> Man I redesigned this 1000k long cl*** file and seperated it into child cl***es and my render time went from... 0.032 to 0.0076
<4> err
<4> 1k
<4> Man it was ugly



<0> Wolfpaws: In a netsplit, they can de/voice others
<2> Does anyone know what I mean? Basically I want a page to say different things randomly
<0> At least, that's how dancer used to work. I haven't checked it in a while, I guess.
<3> TML: o.O I thought you needed to be an op/halfop for that...
<2> or at least some randomness
<0> ReTaLiAToR: php.net/mt-rand
<2> thanks bud
<0> CLucas916_x64: Figure out what I'm trying to tell you yet?
<5> na i see what your talkin about
<4> How can I use sha512 ?
<6> tek: sha512(stuff to sha512ify);
<3> there should probably be a PECL module for that, tek
<0> Wolfpaws: +v's would get elevated to halfops on netsplit sometimes
<3> TML: o.O Oh, that's really scary....
<0> mhash can do SHA-512
<0> Wolfpaws: It's why I never use +v
<7> can some one p*** me a url that will explain how to pipe entry data from a dynamic html form into an array, with php4?
<3> TML: That's one HECK of a good reason...
<0> hmm...my bad...SHA-512 *doesn't* do
<2> Nice I got this
<2> yeeehaw
<0> err...mhash doesn't do SHA-512. Just 256.
<2> you guys rock
<0> ironpig: php.net/faq.html
<3> :)
<0> tek: You're going to have to implement SHA-512 yourself.
<4> i have a variable, $set_obj = name of the instantiated cl***
<6> TML: It comes with mine...
<4> so, $set_obj = '$var';
<3> TML: didn't Pollita wrote a module for that or a patch to PHP or something?
<0> freeone3000: With your...what, exactly?
<4> I'm trying to use call_user_func to use a function depending on which object is instantiated
<6> TML: PHP install.
<6> TML: Least it shows up under 'hashes'.
<0> freeone3000: Oh? Which version?
<8> What are the boxes called when highlighting over the word HTML in the following website, and how would I make them? http://www.phpfreaks.com/tutorials/43/0.php
<4> using.. call_user_func("$set_obj->_t->render()"); and it's not working
<0> freeone3000: Under mhash?
<6> TML: 5.1.2.
<6> TML: Just under the 'hash' heading. Right under the one for 'gd'.
<6> TML: (looking at phpinfo())
<1> Wolfpaws yes, in CVS
<0> freeone3000: I don't know that extension.
<9> I'm trying to use this code it's getting a error: cl*** loremIpsum { (...) var conteudo = '<div cl***="' . $this->id . '">'; (...) }
<10> tek: ung, from the look of that line, I'm bowing out.
<3> Jymmm: Ah... I thought so.
<0> ViniciusDepizzol: You can't do that.
<1> Wolfpaws: http://www.php.net/manual/en/function.hash-algos.php
<0> ViniciusDepizzol: cl*** properties must be defined statically
<4> Xyphoid, why?
<9> TML: so, how I put the id value in the var conteudo?
<0> ViniciusDepizzol: You have to do it in either the constructor or some other method.
<0> ViniciusDepizzol: Think about it. At instance-time, there isn't a $this yet to reference.
<10> tek: you're doing terrifying things
<8> What are the boxes called when highlighting over the word HTML in the following website, and how would I make them? http://www.phpfreaks.com/tutorials/43/0.php
<4> haha, why do you say that?
<9> TML: yes, var id was before constructed
<6> TML: I didn't do anything special for the config other than with gd and with zlib.
<10> 'cause you weren't instantiating objects a few minutes ago, and now you're using call_user_func to replace polymorphism
<9> TML: the problem is with the dot separating the strings



<10> oh wait, that was foo
<10> a cl*** method named _t scares me too
<9> TML: cl*** loremIpsum {
<9> var id = 'test';
<9> var conteudo = '<div cl***="'.$this->id.'">';
<9> }
<4> Xyphoid, why does that scare you?
<4> Xyphoid, I don't get it, what do you want me to name it, $t ?
<4> I don't feel like typing $template eveyr time, and the underscore lets me know that this is a cl*** property
<10> vini: that will never work. there *is* no $this at the point that line is run.
<11> ok, there are any suggestions?
<0> ViniciusD: The problem is with putting variables in what must be static initializers, but even if that WEREN'T a parse error, $this doesn't exist until the constructor body.
<0> Everything outside of methods runs before the constructor does, and therefore, before $this
<0> (exists)
<11> but the problem isn't with the $this. The problem is the dot.
<11> if I put var conteudo = "1"."2";, appear the same error
<10> also, use var $this not var this
<0> ViniciusD: No, the problem is with using non-constant expressions of ANY kind.
<10> er, var id not var $id
<10> er, christ, I am retarded today
<10> var $id not var id
<4> Xyphoid, me too
<11> Parse error: syntax error, unexpected '.', expecting ',' or ';'
<0> ViniciusD: Correct
<0> ViniciusD: Something with a . is a non-constant expression.
<11> ok, I will try a better mode =D
<11> thank you, TML
<0> ViniciusD: As I said, you can do it in a method, such as the constructor.
<11> how?
<0> ViniciusD: cl*** a { function a() { $this->foo = '1'.'2'; } }
<0> It's only initializers that must be constant expressions
<0> i.e., stuff outside of methods.
<4> I still **** relatively bad at OOP
<4> But I manage
<11> oh right! now I can understand =D
<11> thanks, TML
<12> now it worked ;)
<13> gah. this be driving me up the cactus. why would I be getting this error? 'Warning: mysqli_ssl_set(): invalid object or resource mysqli'
<10> what's the call look like?
<13> mysqli_ssl_set($db,$key, $cert, $cacert, NULL,NULL);
<13> this worked under 5.1.2
<13> I'd stick with that but that has security issues. sigh.
<13> $db = mysqli_init();
<13> btw
<10> Can't help sorry - implies that the $db is invalid
<10> but I haven't played with mysqli yet
<13> grumble bottom. :/
<13> ok. version of mysql is ok. 4.1.11
<14> var_dump($db);
<13> object(mysqli)#1 (0) { }
<14> Apparently that's not what it wants.
<10> mysqli_init doesn't have any configuration, tho - the connection hasn't been made at that point
<13> hrmph. well mysqli_init() doesn't take any arguments so my usage can't be wrong.
<10> this is on 5.1.4?
<0> CaT[tm]: Your usage absolutely IS wrong
<0> "bool mysqli_ssl_set ( mysqli link,...."
<0> mysqli_init() doesn't return a link
<13> ahhh
<13> this used to work in 5.1.2 though.
<10> tml: I'm pretty sure the 'link' there is misleading
<10> note that mysqli_real_connect has the same 'mysqli link' argument
<10> and it's definitely intended to be applied to a result from mysqli_init
<13> and a different server running 5.0.2 works with that exact code.
<10> looks like 'mysqli link' is cut and pasted throughout, even though the mysqli object isn't always a 'link' as such
<10> cat: tried the $db->ssl_set version of the method?
<15> What exactly do "Fatal error: Cannot access empty property" mean? :p
<15> http://nopaste.php-q.net/215499
<13> xyphoid: trying
<13> xyphoid: similar error.
<15> Further research shows that it might be a bug in php 5.05. Is it so?
<13> and both mysqli.so and the mysql library link to libssl and libcrypto
<10> cat: Sorry, not much else i can think of - sounds like either a bug in 5.1.4 or a configuration thing.
<16> I encountered an odd XML bug in PHP 5.1


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

The package jre needs to be reinstalled, but I can't find an archive for it.
#ubuntu
#kde
#perl
apt-get install kernel-image-2.6.16
#mysql
#perl
gentoo broadcom 4400 modprobe
printf python how to think like
failed to set up write-combine range



Home  |  disclaimer  |  contact  |  submit quotes