| |
| |
| |
|
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> And strings in Klingon (wait, that's not fully Unicode yet...?) <1> Haha <2> ka'plah { public function toooooo'gah!(...) { .. } } <0> Check Andrei Zmievsky's talks page: http://www.gravitonic.com/talks/ <2> cl**** <0> *andrei zmievski <2> php6 annoys me. Derick: namespaces? useless. GOTO? now THERE'S a usefull feature. <2> *kill* <0> Does anyone here use the DOM functions in PHP5? I'm building a CMS based on generating the content using the DOM functions... <3> Shadda: lol <2> AbuHurayrah, I do. <2> my site's entirely XML/XSLT driven <0> I don't mean DOM-XML...I mean the DOM...oh really? <0> WHow do you use it? <3> AbuHurayrah: check out the W3C DOM Documentation if you have questions :) <0> The XSLT parts...
<2> output the dynamic content to XML with php5's DOM model <0> No, that's not what I meant. I understand how to use it, but I wanted to know in what capacity. <2> transform it with libxslt (www.php.net/xsl) <0> For the entire site...do you just generate XML, or what... <2> AbuHurayrah, here <2> http://fontiac.carbonix.us/xml <2> not exactly the most properly formed xml doc <2> but hey <0> *checking* <2> that gets transformed (via xslt) to http://fontiac.carbonix.us/ <0> Shadda: Nifty! <0> I haven't done much with transforms myself...I basically just use the DOM objects for my X/HTML output... <1> Is Drupal OO yet? <2> I'm in love with xsl :) it has some caveats but makes templating a breeze...n' I don't even really like the idea of controlling any kind of logic in the template, normally... <4> Hello, how do I create a method that can be access like $object->method1() and $cl***::method1()? <1> Or do they still use the system with functions? <2> fromvega, er, read up on OOP ? <4> s/access/accessed <0> fromvega <5> anyone around that is willing to help a newbie with some table problems? <0> $object1->method1() is defined normally within a cl*** <0> $cl***::method1() would be a static method (usually)... <0> so you would define it as public static function method1() <2> cl*** foo { public function bar($name) { echo 'Hi, my name is', $name; } } $foo = new foo; $foo->bar(); <2> er <6> mail("myemail@myemail.com", $subject, $message); <-- I have a question... what could possibly be wrong with this? I'm trying to send an email to myself from a form that a user submits and everythign seems correct, I just don't get the email though. Any ideas? Thanks ^_^ <2> cl*** foo { public function bar($name) { echo 'Hi, my name is', $name; } } $foo = new foo; $foo->bar('matt'); <4> AbuHurayrah: but if I define as static, can I still call like $object->method() ? <0> Lots of errors... <2> fromvega, no. <0> Isha_Mike: What's the error you're getting? <6> I'm not <0> I concur with Shadda <6> It just doesn't send me email... and obviously I double-checked the email address <2> fromvega, $object represents an instance of the cl*** <0> Then check your e-mail setup in php.ini, and check that you can e-mail normally... <2> static methods and properties represent values and methods used outside of instances <6> there any error-checking method? I'm using an online host... <4> Shadda: so, how can I do that? or I can't? <2> fromvega, eh? do what <2> oh lovely...I nuked my OO tutorial, too <2> yay for being an idiot! <4> Shadda: be able to access a method both ways $object->method() and $cl***::method <0> This is my first time on #php...what do all these other people do? Just listen? <1> I listen <0> fromvega: Write the method outside the cl***..;) <1> and havemy question ignore <2> fromvega, you can't. er, well, in php4 you can. But we don't discuss php4 OO without weeping. <1> ignored <0> DROPTOTHETOP: I didn't know, so I didn't answer. <2> I didn't see, so I didn't answer. <1> Which one? <2> oh, and I hate you. that's why. <1> the htp***wd one or the Drupal one? <4> Can I use .(dot) in PHP5 instead of -> ? <0> I got on after your asked htp***wd, I think... <2> fromvega, no. <0> fromvega: no <0> lol <2> . is an append operator in php heh <0> Shadda types too fast!
<0> Andrei had a patch to make it do that... <6> AbuHurayrah, is there any way to check it via a global variable or something? I'm using an online host and therefore cannot connect to an ini file... <0> Resembling the behavior of Perl 6... <0> Ishs_Mike: You can always ask your host... <2> AbuHurayrah, would be better than what they're considering for php6 <2> ::: or \ <7> It's not that people ignore you, DROPTOTHETOP. Sometimes people just don't know the answer, so they cannot help you. Please remember that this is all *voluntary*. We're (mostly) helping each other because we simply like doing it. :) <8> \? that's awkward. <0> Ishs_Mike: You can write a simple script with only this function call: phpinfo <0> Isorry, phpinfo() <0> It will give you all the information on the PHP environment <6> yea I remembered that function..w as just trying it now <6> thanks <2> FlannelKing, to be fair, there's not really anything else they could use, not without an overhaul of php's tokenizer/parser <0> This is also my first time... <2> every other operator is in use <0> Shadda: Are they changing the member-access character? <0> characters* <8> Shadda: I suppose, but it'll still feel like I'm escaping everything. <7> Could the + operator not be overloaded for string concatenation? :O <2> AbuHurayrah, -> you mean? <0> Yeah...what were you referring to about PHP6? <2> codergeek42, sure, if php supported overloading <2> heh <0> With ::: & / <2> AbuHurayrah, namespaces <0> Oh. <2> namespace1\cl***->bar() <0> WHAT?! <0> Oh man... <9> codergeek42: It actually used to be +, they changed it in PHP3. <7> Shadda: Oh. <2> \ vs ::: though...\ wins <7> TML: really? Gaaah silly Rasmus!! :P <2> ::: would be a bitch to type, and even harder to read <0> What would be the problem with supporting "." in different contexts... <7> or the & operator (VB-style) o_O <2> AbuHurayrah, concatenation <7> (sorry about my swearing there :P) <0> For example, a "." used on an object would mean "access", while . between two strings would be concatenation... <10> quick question, i just want to reverse an array. i dont want to sort it or anything, i just want it reversed. what function should i look at? <2> foo.bar how do you know that's not a constant being concatenated? <0> Can someone kick codergeek42, please? :-p <7> imagine trying to concatenate two string members of objects...could get confusing if you're not careful :O <6> So what exactly am I looking for? <7> AbuHurayrah: lol <2> mmm vb6, codergeek42 likes it kinky <0> $object2.string1.$object2. OH <7> Shadda: NO! No No No .... <7> haha <0> devians: Can you give us an example? <1> ... <11> Shadda: BLARG <7> oh wait; object members are '->' in PHP <0> *awkward silence* <7> nevermind what I said earlier! *sigh* <6> AbuHurayrah, what exactly shoudl I be looking for here? Apparentally everythign seems to be going okay... it's got a 'sendmail_from' and all that good stuff <0> codergeek42: Also, you can parentheses....to clear the context? I don't know. <10> ummm... array('nav1' => 'extravars', 'nav3' => 'extravars3', 'nav2' => 'extravars2'); <2> freakin cat disconnected me <2> devians, dunno if some one said it, but, array_reverse() <2> ta da <0> Isha_Mike: Well...what do you see for mail? <7> AbuHurayrah: true :) <0> Shadda: No one else did... <10> ty Shadda i was looking for something like that <6> well... there's nothing for just "mail"... no variable or anything like that at all <0> codergeek42: But that would defeat the purpose, I guess, of saving time with dots...:-p <10> i was looking at krsort and such :| <0> PHP documentation is outstanding...I can usually find a function in short order. <7> bleh....I don't get why people want to use '.' instead of '->' when it's only one character less :| <0> Who here is NOT using Firefox?
Return to
#php or Go to some related
logs:
cedega.deb #python BBL PCMCIA.drivers #php #gentoo #kde extract tar bz2 ubuntu terminal
braz gaim fedora comand ss
#lisp
|
|