@# 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 22 23 24 25 26 27 28 29 30 31 32 33 34



Comments:

<0> yeah syntax highlighting is good
<1> like beer
<2> Hehe
<2> And if I set a var to "01" will it keep the 0?
<0> Zakabog: depends on how you set it
<1> just for fun: ide of choice for php?
<0> and use it
<2> $bob = "01"; and if I echo it or something
<3> Hi #php. what does the & do in $rs = &$db->execute ?
<0> Zakabog: a simple echo will keep it
<2> K
<1> barf, the & meands to p*** the $db variable to $rs by reference
<0> barf: well, technically it is a reference of the variable from the ->execute call
<0> barf: $a = 0; $b = &$a; $b = 1; echo $a; # 1
<3> thanks guys!
<0> although in php5 it could mean a different thing pending on what ->execute returns



<1> headache
<1> well ->execute would return a result set from a database querie (bound params)
<1> most likely
<0> a resultset object or a resource?
<1> good question
<1> in mysqli execute returns true and false on success failure
<0> yeah typical db->execute type thing, it usually used as a comand query that doesn't return results
<1> and the result would be stored in some sort of private property
<0> otherwise it would be stmt->execute or something
<1> so $rs just holds a refrence to the instance of the cl*** ($db)
<1> $rs->fetch() would be the same as $db->fetch()
<1> ??
<0> no
<4> is there a such thing as Zend API docs?
<0> are we talking myssqli?
<3> adodb
<0> JVz: yea
<4> I mean, how the crap are you supposed to write extensions if there's hardly any documentation
<0> http://www.zend.com/zend/api.php
<4> e.g., how about using PHP5 OOP in extensions?
<1> im ***uming mysqli
<4> zircu: it's VERY incomplete
<0> JVz: i would recommend getting some books they are a bit more complete
<5> I'm porting PHP5 code that uses XML stuff to PHP4. Any ideas how what to use to replace the use of the XML DOMDocument and DOMXPath?
<4> I only need reference, I already know how to write extensions
<4> it's just that there are a ton of things I _could_ be doing, but I can't without knowing the proper method of doing so
<0> JVz: well, the best way i find is finding a good oop implentation you like and read the code on how they do it
<4> oy, the microsoft method...
<4> I s'pose I'll have to do that
<0> JVz: http://www.amazon.com/gp/product/067232704X/103-1412890-3779026?v=glance&n=283155
<4> I'm poor (i.e. 18)
<4> can't afford those new-fangled books
<4> ;p
<5> in other words is there anything in PHP4 todo waht DOMXPath does in PHP5?
<6> JVz Just quit your whining and go rtfm.... http://pecl.php.net/
<4> I was looking for a manual, Jymmm, so I'll check that out
<0> Jymmm: that doesn't explain how to code oop extensions very detailed though
<7> isn't there something inthe manual that talks about it?
<0> sort of
<6> zircu he said he wrote ext already, wtf do I care if he can't stfw or rtfm
<4> wow, way too many acronyms
<4> anyways, the only things I've found so far (and in the past) were CODING_STANDARDS and OOP2_HOWTO
<4> which only give short insights, no documentation
<0> that makes it easier, just setup up your object methods and what they use write wrappers around the existing functions to compansate for this();
<0> the coding standards wont give much help on how to write extensions
<8> PHP's C API isn't much help anyway
<0> there is a zend/php conference in the Bay area of California comming up.. i'd think there would be a talk about this there
<7> ha - this might also help - http://lxr.php.net/
<0> i got a lot out of marcuss talk last year
<4> if there isn't an effort [yet] to fully document the C API for ZendEngine2 and other miscellaneous PHP things, how can one start?
<7> JVz, I think I just gave you the link to the API docs...
<8> JVz: By reading countless lines of source code.
<4> okay
<4> reminds me of mozilla, but far less messy and far less memory leaks ;p
<0> JVz: there may be something already started, there is the php-doc team that would probably have more info on this
<7> and here is the link to the start of Pollita's articles on internals for zend - http://www.zend.com/php/internals/index.php
<8> JVz: The API? PHP has a messy API.
<4> kuja: have you ever seen Mozilla's?
<0> kuja: userland api?
<8> No, but I'd rather not.



<4> keep it that way ;p
<8> zircu: No, the C API.
<0> well, i would explain it with growing pains :)
<8> So far I've only looked at parts from CVS, and man that makes me puke
<8> JVz: I'm not completely against that.
<4> at least in the sense that the C-level things will have to be fixed
<9> I hope so
<4> PHP-level things can still work just fine
<8> PHP6 should've broken backwards compatibility, but they don't seem to care much about that.
<8> I'm all for the idea of major revisions breaking backwards compatibility... :P
<8> As long as previous revisions remain in a stable state...
<4> do any of the main php developers hang out in here?
<8> Pollita does
<0> JVz: some
<8> But I think she's more of a PECL gal.
<0> hell she is the major person that added the stream stuff in core
<7> she is a major core member
<8> She's more like a PECL princess though, got lots of PECL projects.
<4> ah
<8> I'm particularly interested in `operator'.
<0> honestly though, i would question a 'perfect' api.. growth usually gets in the way
<8> zircu: Ruby has quite a ***y API :P
<8> zircu: Even me, the C village idiot wrote a simple extension within minutes.
<8> *While* understanding **** at the same time too =)
<0> kuja: i say they just had to much time on there hands and got lucky it got popular :)
<4> Ruby has too much good going for it
<8> The major players who wrote Ruby's documentation are like 2 Americans or something who spent hours and hours of reading source code and figuring out how **** works, but in the end it was all worth it (lack of American documentation, it's all Japanese).
<8> But with a readable API, it was possible.
<10> If I use css and divs , and in each div I include something ...how could I manage p***ing parameters to a php in one of thatdiv ? FE: I include in one div test.php?table=filme&page=2, how I will p*** to that include page =23 ?
<8> I need to build operator and test this extension out... <3 Pollita
<4> er, what? (ace_me)
<0> i'm scared of that extension
<8> zircu: I wouldn't feel at home without it :P
<8> I demand that 2 + 2 = 5 dammit :)
<11> ace_me: when you include() a file, PHP does the equivilant of copy-pasting the entire source of that file into where you put the include.
<4> has anyone stopped to wonder, does cp stand for CoPy, or Copy-Paste?
<6> kuja 2 + 2 = 5 - 1
<8> Jymmm: Not when I'm done figuring out how to use the operator extension, it isn't :P
<4> I can make 2 + 2 = 3
<0> copy of course
<4> #define ADD(x,y) x+y
<4> int twoplustwo = ADD(1+1,1+1)
<4> oh wait
<4> multiply
<8> ...
<4> make ADD do x*y
<4> yeah, that's it
<11> wtf teh f?
<0> i would just redefine 2 = 1.5
<12> >.<
<4> or better yet
<8> Okay... built/loaded operator but no clue how to use it :(
<4> #define ADD(x,y) 5
<12> thedailywtf.com
<11> kuja: Did you try operating on the cl***es?
<4> if it's anything like C++, do "function operator+($var)"
<8> JVz: int two_plus_two = 5;
<0> no docs? Pollita's slacking
<11> I would imagine that it would involve a __
<8> kamoricks: I'm guessing there's magic methods
<8> Indeed
<8> Perhaps Pythonic __add__?
<4> I'd say "view the source of the extension", but I'm not like that
<11> __add maybe. Since it's __construct and not __init__
<8> JVz: I was just about to, after I gave it a test go
<4> k
<4> report back on its syntax for us, kthx
<12> o0g.. i have to grok perl regex for the rest of my career..
<12> pls shoot me
<4> read "Mastering Regular Expressions" then
<12> JVz: i might as well have written it
<12> its a matter of work volume


Name:

Comments:

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






Return to #php
or
Go to some related logs:

opensuse 10.2 pptpconfig
gentoo failed to mount root on unknown-block
stackless httplib
how to run eggdrop on Freenode?
#web
nice = 1 in my.cnf
Defragment ext3
honeywell dps6 value
uniserver mod_rewrite
gentoo kdm_greet Internal error: memory corruption detected



Home  |  disclaimer  |  contact  |  submit quotes