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



Comments:

<0> what's the worst that can happen, it won't work
<1> you could poke around and try and figure it out.
<2> yeah but i figured itd hella easier if i just knew what binaries to download
<1> if there's info anywhere, it's likely in /etc
<0> do you even have root access on the machine?
<0> also, why can't you ask your hosting provider what distro they use
<0> seems like you should have known before you even purchased
<1> Who's your host? Might even be listed in their faq or something
<2> godaddy
<1> I would guess it's probably either redhat or centos
<2> hmm
<2> ok
<2> thanks
<0> and he'll be back
<0> "i can't install the rpm"
<3> I you sure you have the right model?



<3> Ford performs better than Chevrolet and GMC.
<1> according to the godaddy faq it's redhat. I'd guess whatever he's trying to do he won't beable to though, unless he's got a dedicated server.
<3> Mazda and Toyota are out of the question.
<0> Confessor: ?
<3> Apologies.
<1> /join #proper-channel :)
<3> Whenever I don't have a handle on what's being discussed, I digress into an unrelated automobile conversation.
<0> right....
<3> In this case, I came into the discussion after it was already over, so I figured it wouldn't do any harm.
<4> spox: I added $string = str_replace(array("\n","\r"), '', $string); like you said, now it's adding \ where I have text like " I'm " at.
<5> huh?
<0> right, so you have " i'm "
<0> and it gives
<0> \" i'm \"
<0> ?
<4> it give i\'m
<0> okay
<0> so what's the problem?
<5> dont remove the \r\n's
<5> they'll only appear in the sql, not in the data that's stored
<4> so what's the problem? or so what\'s the problem?
<5> as well as quoteing ' and " and \ i suppose
<4> No they appear on the site..
<5> and a few others that you're not likely to encounter
<5> where?
<4> lemme do a screen shot.
<5> maybe it has to do with using ' in sql?
<0> try doing a stripslashes() on the data, then using mysql_real_escape_string()
<0> then insert it
<5> !php $foo = "foo\r\nbar"; $foo = mysql_real_escape_string($foo); echo $foo;
<5> @php $foo = "foo\r\nbar"; $foo = mysql_real_escape_string($foo); echo $foo;
<6> PHP Fatal error: Call to undefined function mysql_real_escape_string()
<5> no mysql?
<0> guess not
<5> @php $foo = "foo\r\nbar"; $foo = mysqli_real_escape_string($foo); echo $foo;
<6> PHP Fatal error: Call to undefined function mysqli_real_escape_string()
<5> bah
<0> the only thing php is used for is the bot, so probably not
<4> ok **** this. **** is only makin it worse..
<0> and it's only for cli
<4> i'll be back tomorrow..
<5> Jstr: use JUST mysql_real_escape_string
<5> hold on
<4> ok.
<0> no. i think he needs a stripslashes first
<5> no
<0> as php is adding slashes to quotes from the user data
<5> if he does, it's a completely different matter
<5> if he's seeing \r\n in the data, then it's because the \r's and \n's are not being processd by mysql
<5> $query = 'update testimonials set testimonials="'.mysql_real_escape_string($testimonials).'"';
<5> then try that Jstr
<5> if mysql allows either ' or " it might have the same meta character resolution rules or whatever you wanna call it
<4> ok. thnks.
<5> hrm.. if that doesn't do it, then try the stripslashes before the mysql_real_escape_string as suggested before. i cant find anything in the documentation that says there's a difference other than "If the ANSI_QUOTES SQL mode is enabled, string literals can be quoted only within single quotes because a string quoted within double quotes is interpreted as an identifier."
<5> and that's not an issue here
<7> bastard
<4> Two-Bits: that worked. now to figure out how to keep it from \r\n when the [enter] key is pushed.
<8> @str_replace!
<6> (PHP 3 >= 3.0.6, PHP 4, PHP 5)
<6> mixed str_replace ( mixed search, mixed replace, mixed subject [, int &count] )
<6> Replace all occurrences of the search string with the replacement string



<6> http://www.php.net/str-replace
<8> wtf
<8> somebody kill that dude
<9> ?
<9> what dude
<8> with the quit message
<8> I meant in the literal sense.
<9> ?
<4> ok thnks for the help, im out. feelin sick as hell.
<9> ah ok
<8> Slay him.
<5> Jstr: what do you mean?
<5> those \r and \n's should NOT appear in your output. period
<5> ahh **** it
<0> @confess filter php
<6> I like to program in php naked.
<10> hmm how did that get in there...
<11> i blame spox.
<11> morning pizza, spox.
<7> we all blame spox.
<7> sup hant
<11> nadda, going to school, almost late again!
<11> ttyl.
<11> ciao
<7> peace
<3> @confess filter dolphin
<6> I can't take people who love dolphins seriously. Not as in marine-biologists, but people with posters of dolphins on their dorm walls. And only posters of dolphins on their walls. I think it makes them seem like they are still in middle school.
<3> @confess filter britney spears
<6> my girlfriend really likes britney spears and i wish she'd make more of an effort to search her out and convince her to have a threesome with us.
<3> Some girls are just all talk.
<5> some girls are just all ***
<12> Ssup yo
<13> @confess filter ***
<6> i have an anal fetish i wanna **** all the girls i meet in the ***...... some let me some do not :( i need an anal slut quick
<13> @confess filter fetish
<6> I have a HUGE vampire fetish
<3> @confess filter slut
<6> I love giving blowjobs. I've done it to probably 6 guys now, and it makes me feel like a slut when I think about it, but I can't help but fantasize about it a lot. And it doesn't help that I've been told repeatedly that I'm good at it.
<13> @confess filter 6 guys
<6> i told my husband i only slept with 6 guys including him. but i actually slept with 26, two after him.
<13> hehe
<3> Jesus...
<3> When you get up that high, you'd think you'd lose count.
<13> those last 2 were at the same time..
<13> @confess filter count
<6> i went to mcdonalds and ordered: a big mac meal, hamburger, 3 large fries and a coke. it was all for me alone. but i didn't want the counter person to know it was all for me, so i brought in a fake list of names as if i was ordering for 4 people.
<13> ...
<14> CORNED BEEF
<15> how do i alternate row bgcolors on a table that's populated from mysql, code: http://pastebin.com/748284
<14> zoopped: its a pretty straight forward thought excercise
<14> how do you think you might do it?
<12> if ($i%2==0) then table bgcolor = something else table bgcolor = something else
<14> DjKaye: go eat beans
<12> :x
<15> thanks DjKaye, i'll try that
<15> comcor: if i haven't tried all the tutorials i googled, i might have an answer
<14> zoopped: you shouldn't need tutorials, rather you should just be able to apply some simple thought to the problem
<15> comcor: this is a help channel right?
<12> comcor: be kind
<14> zoopped: yes, its not a spoonfeeding channel, though
<16> PSA:
<16> i'm not wearing pants.
<14> The more you knooooow.
<14> DjKaye: I prefer this channel to be for people to get help working through a problem, not to present them as if asking Kreskin for their future, only to get the solution spelled out resulting in them learning nothing but a bit of copy-n-paste code.
<14> Sulk away, just be aware that evulish is not wearing pants, and frequents the corners.
<16> i pee there.
<16> i wish running cold water would make the room cold like running hot water makes it hot
<14> Yeah, **** you chemistry.
<14> hrm, never heard the term "****trumpet" before
<16> ****flute!


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#allnitecafe
#allnitecafe
#allnitecafe
#allnitecafe
coolbuddy
#allnitecafe
#kl
#kl
#india
#allnitecafe



Home  |  disclaimer  |  contact  |  submit quotes