@# 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



Comments:

<0> to be replaced with <*> &quot;
<1> bentob0x- returns a reference
<1> Jabberwock- you mean get the files in a directory?
<2> a reference to the result?
<3> caff: naw, PHP doesn't require it, so I like it. :)
<4> Jabberwock: http://php.net/glob
<2> or to the p***ed params?
<5> thanks
<6> Ahroun: right, but it's a horribly designed and inconsistant language. from your point of view, we should all hate it on that basis alone.
<7> How do you setup php so I don't send sessions/cookies to search engine robots
<1> bentob0x- return $foo; returns a reference to $foo, instead of a copy of the value
<4> caffinated: I thought we all did... :)
<6> mattmcc: heh
<8> liat: Sorry, I dodn't mean '<">' literally, rather, double quotes in element content. Anyhoo, I have to go. Good luck!
<0> :O
<1> caffinated- yeah, don't we all hate the horrible problems in PHP?



<1> Of which there are many
<3> caffinated: Oh. No. I just hate objects, so ruby really goes on my personal crap list. But for those who like objects, I'll bet it rocks.
<6> Dragnslcr: I know I do, which is why I don't use it anymore
<1> I still want to get mod_mono running
<0> Ahroun, hmm, a procedural fascist :D
<3> mod_mono?
<9> i dunno what's wrong with php
<6> Ahroun: sounds like a concept you just haven't wrapped your head around. while I will agree OOP is not always the right solution, more often than not the people who dislike it just don't understand it.
<9> it's fine for most everything
<9> i'd preffer python, but eh.
<1> I still can't get used to Python's significant whitespace thing
<4> Ahroun: Eh, ruby doesn't force you to use OO practices any more than python does.
<2> but why not getting the results like this : $result =& something() Dragnslcr
<9> you can't spend all your time complaiing about the language you have to use.
<9> cause none are perfect5.
<4> Dragnslcr: You don't indent your code?
<3> caffinated: No, I learned it really well just so I could prove in exquisite detail to my professors every reason I hated the concept.
<1> mattmcc- of course I do
<6> Ahroun: ok, so start.,
<3> liat: btw -- labeled and proud. ;)
<4> Dragnslcr: So python's making use of what you do anyway.
<7> How do you setup php so I don't send sessions/cookies to search engine robots
<6> i'm dying to know why OOP is so horribly, horribly wrong.
<10> s/\n/ /
<11> anybody?? $mail->to("test@test.com); -> how can I use a variable $foo in this? like this $mail->to($foo) but something is wrong :(
<3> caff: In private. This channel has seen this debate so many times already.
<0> Renacor, robots.txt
<1> phpdjt- you might start by actually saying what's wrong
<12> phpdjt: what's $mail?
<6> Ahroun: it has seen the debate, but it has never provided anything worth listening to.
<0> I'm about to tell you of this awesome tool, that will make it so you never have to ask a question again.
<3> liat: wikipedia?
<0> Just click this -> http://www.google.com/
<13> liat: Sure, if he wants a huge noise to signal ratio.
<1> OO is excellent for the stuff it's good at, and it ****s for stuff it isn't good at
<0> Dragnslcr, you can say that for everything.
<6> Dragnslcr: I don't think you can get more ambiguous than that
<12> Dragnslcr: what?
<1> It's just another tool that should be used when appropiate
<13> Dragnslcr: Dude, I like you, I really do, but... "Thank you, Captain Obvious!" :P
<1> Elazar- heh, thanks
<0> As is procedural code, or buzzwords
<3> awwww, but buzzword bingo is so FUN!
<12> AJAX!!!
<1> That was my point. You can't just say "OO is good" or "OO is bad"
<1> It's good for some things, and not so good for others
<0> how about "OO is OO"?
<4> "What is... is?"
<11> Stormchaser: mail cl*** and I just need to switch the real email address for a variable $mail->to("foo@foo.com") to $mail->to($foo) but when I use a variable the cl*** says that it's not a correct email address
<1> phpdjt- then check what $foo is?
<12> What 'mail cl***'?
<1> Make sure $foo is what you think it is
<2> so what's the difference between function &something(); $result = something() and function something(); $result =& something()?
<12> !+&
<14> [&] & is the PHP 'Reference' operator. See: http://php.net/references; & is Also the PHP bitwise AND operator. See: http://php.net/manual/en/language.operators.bitwise.php
<12> go read.
<11> Dragnslcr: $foo is the email address when I echo $foo
<15> i have compilled php --without-mysql, can i enable mysql without recompiling?
<1> phpdjt- well, either $foo isn't exactly what you think it is (or what your mail cl*** expects), or your mail cl*** is bugged
<13> sorion: dl("mysql.so");



<15> ?
<16> simplest way to remove newlines?
<17> TheWarden, *ping*
<12> kon_: trim()?
<16> you rock
<16> thx
<0> kon_, str_replace("\n",'',$string); ?
<18> Trying to secure an application... but I don't know how to work a "remember me" function with cookies. What cookies should I set and how should I auth when the session has expired?
<0> afaik, trim removes them from the ends, right?
<18> Yeah
<12> yes
<18> Start and End
<16> liat: also tried this one, didnt work for me
<0> kon_, er.....
<16> prolly there are \n\r or \r\n whatever
<0> I see
<13> sorion: http://php.net/dl
<12> kon_: Do you have unix-type line ends or windows-like or mac-like?
<16> should be win-like
<12> then 'n'r
<12> er... \n\r
<16> im trying to make a converter from smartftp favorites to filezilla xml favorites style
<12> $string = str_replace(array("\r\n","\r", "\n"), '', $string);
<19> I have a database search returning the results in what looks like an array when I print with print_r(), but in fact is apparently a stdCl*** Object. When I try to re***ign the elements of the results to another array, I get an error. How do I deal with this?
<16> trim worked nicely, thanks
<12> peqe: What error?
<6> peqe: stdcl*** is generally used when you have an object stored in a session with no accompanying cl*** definition
<9> peqe: what kind of db?
<16> hooray it works
<4> peqe: Well, if it is a stdcl***, then $res['foo'] won't work, of course. It's not an array.
<19> I'm getting various errors as I try different things. I'm using MySQL via mysqli, and I'm using some wrapper cl***es I found online
<20> If i've installed php without configuring iconv, i need to recompile php or i can do some configuration myself ?
<19> I get a $result that when print_r()'d looks good. Now I want to loop through and ***ign those results to another array, processing them a bit.
<19> I'm trying to figure out how to do that with foreach, while, whatever
<19> (given that it's this StdCl*** Object thing)
<21> =]
<22> what
<22> all my nicks are owned by someone else
<22> mm
<23> better
<23> May i have some help with a php related topic please?
<23> if anyone would be so kind
<4> Only if you ask a question.
<1> Sure. Always use foreach
<24> i think he just did... and used up his daily quota
<23> lol
<23> I've recently learnt OO
<23> and im trying it out
<24> :/
<23> if in a cl*** I have a function that was known as parse_buffer but is now called construct
<1> Wake me when he actually asks a question
<25> preg_replace('/#{3,6}([^#]+)#{3,6}/','#####\1#####',$courseText); -- why doesn't that change ####this thing?#### into #####this##### ?
<4> peqe: Well, pastebin.com some code.
<23> me?
<4> peqe: You keep saying "another array", which makes me think you think it can be treated as an array.
<23> http://tfom.servehttp.com/fishbot-source
<23> the source is there
<6> trovster: are you ***igning the result/
<23> anyway
<6> ?
<19> ngvglion: Let me try one thing first (I have a stack of books open, and I think I found a possible solution)
<23> ok
<25> caffinated: Yes.
<6> trovster: preg_replace does not alter $courseText in place.
<1> trovster- it works fine for me
<25> aha, got it now! Thanks
<25> I wasn't ***igning it, then I realised I was making it 4x# not 5x# !
<26> I'm looking at someone elses code as an example: $email_msg = "$email is ".($result ? "" : "not ")."a valid deliverable e-mail address.\n"; but I don't understand this part ($result ? "" : "not ") is this something to do with cl***es (OOP).
<27> I have a cl*** that I want to extend the database cl***. IN that cl***, can I check if the database cl*** exists?
<6> grogoreo: it's called ternary, and no it has nothing to do with OOP
<27> grogoreo: it's a short if else statement. ternary's rule
<6> not really. they're a bad way to code in many cases.
<3> ternaries are good only if they stand on their own, imnsho.
<28> do you consider someone with the name 'intellectual' smart?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

enable ssh on SUSE 10
#linux
#centos
ubuntu xserver resetup
#sed
#osdev
um another copy is running
LWP::UserAgent file exists
#sql
breezy.ca



Home  |  disclaimer  |  contact  |  submit quotes