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



Comments:

<0> use it to do what
<0> surfdue, what this comes down to is specifications... i.e. SPECIFIC things... like you need to be insanely verbosely specific
<0> about everything
<1> hey there
<0> ahoy thar
<1> i am looking for a way to render <br /> in my html after it has been saved to the database
<1> i tried a str_replace with '\n'
<2> echo nl2br($data);
<1> but that just puts it out to the source...and not the actual source
<0> jirwin, mysql_escape_string
<2> not even close ;)
<1> looking at that...not sure how that will help...?
<2> nl2br() is most likely what you are wanting
<0> jirwin, looking at your question... "it" what is "it" ... has been saved to "the database" ... oh right, yes "the database" ...
<0> what gets saved to the database... does "it" get saved or does "my html" get saved?
<1> i am sorry...lol



<0> does "it" refer to "my html" or to "<br />"
<1> ok...thinking about it...it isn't even saved to a database
<0> and last but not least ... define "render"
<3> surfdue : nodnod, not to be insulting, but did you look at the example at: http://us2.php.net/mysql_fetch_array
<0> i feel like bill clinton
<0> "that depends on what the definition of 'is' is"
<1> I have a chunk of text...that may have html in it
<1> before it is displayed, I am stripping out the html tags to be a little safer
<0> Kyndig, heheh oh i think we're past the insult phase, how i'm in sort of a morbid curiosity phase :P
<0> jirwin, ok
<0> go on
<1> but before that...I would like to actually 'render' the <br /> to the page...so breaks take the effect that they should
<0> errr
<0> so just render before you strip
<0> simple
<1> yes...how do I do the render part..lol
<0> jirwin, uhhh... echo $my_html
<1> i am doing that...and it is displaying the html as plain text.
<0> no clue my friend
<2> look at html source
<1> because...if that was working like you think it should...I would just do a strip_tags with a safe tag of <br>
<2> consider htmlentities and html_entity_decode() as possible options for whatever it is you're doing
<0> "stp awaaaay from the n00b"
<0> aight, well i figure i'll stop terrorizing yall pretty soon here
<2> sleep is good
<0> yeh, i agree
<1> thanks...I will try this.
<4> anyone know what GD2 is actually like creating web layouts ?
<0> gd2?
<3> [shameless plug] http://www.thegypsyscloset.com/ just put that site up for my mother in-law. it's one of those weird wiccan thingies..but using oscommerce (first time I've _ever_ used an opensource web portal system)
<0> pretty decent Kyndig
<0> ok yall, careful not to step in the n00b droppings
<0> peace
<5> Does anyone know if you need a merchant's paypal account to accept payments from others? This PHP paypal ign is driving me crazy...
<6> ty for the help
<6> night
<7> I had someone send me money through paypal... and I don't have a merchant's account
<5> nice
<3> lig : then they didn't send you any money
<5> ?
<2> need business account to receive money via CC
<7> it was transfered into my paypal account ...
<7> and my husband used it one ebay...
<5> oh, i think ebay's different
<5> did you sell something on ebay?
<7> no - they just owed me some money
<2> anybody can do paypal<-->paypal
<8> You need a business paypal acnt to accept payments funding wiht a credit card
<2> hey i said that too :)
<8> You need a business paypal acnt to accept payments funded with a credit card.
<2> heh
<4> [16:51] <0> gd2? <-- the php graphics library
<5> so the trick would be to deposit some money into paypal and then send it?
<3> and if you're looking for an actual merchant account for credit card / online-check processing, try echo merchant. good (inexpensive) company
<9> Kyndig, uh... ?
<5> actually, yeah. I need a decent credit card company
<10> hey, what's the problem with this array? http://pastebin.com/661101 , can't i use nested arrays?
<5> do you have to pay anything upfront?
<5> i already went over my start-up capital for my company: $2.99 for a yahoo redirection domain



<3> Braz : nothing upfront. But it was a few days worth of red-tape to get set up. Well worth it (going on 4 years now). I had to fax them pics of my home setup for an "office", copy of business license, etc
<5> wow
<5> one other thing: advertising
<5> google adsense hates me
<5> with a p***ion
<10> hello? :~
<5> the yahoo adsense thing rejected me
<5> twice
<5> what now?
<3> dark_light : after your 2nd and third array() ... you need a: ,
<3> 'banner...'), <----
<10> it's the separator of the valid-xhtml and valid-css elements?
<10> i got it, thanks
<10> kyelewis, hey, a $CONFIG_settings_image['valid-xhtml']['title'] shouldn't work?
<10> er, i meant say this to Kyndig
<3> $config_setting_imagem
<3> rather $CONFIG_setting_imagem (is that a stray 'm' ...)
<10> hmm, i renamed the array
<10> the point is: don't works :o
<3> nod
<10> the array name was a confure mixture of english and portuguese:)
<10> confuse
<10> http://pastebin.com/661111 , testing with <p><?$CONFIG_settings_image['valid-xhtml']['title']?></p> on the code, don't works :(
<10> ops
<10> there are a = missing
<10> ..
<11> hey
<11> http://amine.myftp.biz/time/src.phps
<11> on line 20 (if(($i->$member1 == $value1) && ($i->$member2 == value2)) {) im getting: Notice: Trying to get property of non-object in C:\Server\Apache2\htdocs\*\ on line 20
<11> well its actually line 15
<11> on that .phps
<11> I dont know how to fix it :(
<3> dark_light : other than syntatical errors: http://pastebin.com/661114 it worked fine
<10> Kyndig, well, it's working now.. it was only a = forgotten on <?=$..?>
<3> dark_light : no, there was a missing: ' and a missing , and a missing ) to be exact =)
<10> endra, well.. maybe it's $i->member1.. or maybe i don't know how to handle with -> :)
<11> yea but member1 is a variable
<10> kyelewis, are you sure? o.o
<10> hum
<11> so like if member1 is 'day' itw oudl do $i->day
<11> I think ..
<10> endra, well, hmmm.. o.o
<10> Kyndig, (are you comparing with the http://pastebin.com/661111 version? seems to be the same code :P)
<3> dark_light : there was also some non-standard ANSI characters in there, but I won't get into that..enough to say it was just syntax error =)
<3> dark_light : It _seems_ to be ..keyword "seems"
<10> Kyndig, but.. http://pastebin.com/661111 is working o.o
<10> *trying to compare better*
<3> wait..heh, sorry, if you reposted, I missed the repost, I was looking at the original one with the syntax errors, and those funky characters in 'Valido'
<10> yeah^^
<11> If I haev a string, how can I set it to be the member of the cl***? So I can do $cl***->$member and if member is e.g. 'test' it would return $cl***->test ?
<12> hi all. I installed php on freebsd 6 machine. but php.ini not created. So php use php.ini-dist or php.ini-recommend?
<12> which better php.ini-dist or php.ini-recommend?
<13> define better
<12> therock: I don;t know well php config. then I need enable register_global
<13> Tulga: soo we need to use our magic ball, as we are wizards, and guess your needs?
<13> Tulga: go back to asp.net
<14> How do I make php not set a content-type and let apache set it instead?
<14> I tried setting default_mimetype, but that doesn't work if I want apache to send .phtml as text/html and .pxhtml as application/xhtml+xml
<15> is it OK to load the cl*** definition of an object from a function? (or will it not be globabl)? ie function prepareForm() { require('form.cl***.php'); }
<14> And not setting default_mimetype just fell back to the default of text/html... same with setting it to the empty string.
<16> hey, does somebody wanna take a look at a small snippett I have, and help me figure out why it won't print in color to my *nix konsole session?
<16> nevermind
<17> what' wrong with this script
<17> http://paste.uni.cc/8856
<18> Tw33Ty: No opening tag? No closing tag? The function is calling itself?
<19> any remote upload samples can share with me?
<20> So if I have a url like $url='http://www.site.com?id=$php_value&$other_php_value' ... the variables will need to be protected by {} right ?
<18> babo: It's single quote, $php_value will be $php_value instead of its value.
<20> tws: oops ... thanks tws ... but apart from that though - I'll need to protect the varaibles right ?
<20> tws: it's all kinda linked into a mailing program and it's not easy to test right now ...
<18> babo: Put them inside double quote. No, you do not need to encapsulate them within {}, unless they are array and inside double quote.
<20> You mean just like $url='http://www.site.com?id="$php_value"&"$other_php_value";'... ? or should I add a . as well ?
<20> yeah, it's ok now - thanks
<18> $url = "http://www.site.com?id=$something&other=$another_something&other={$from_some_array[0]}";;


Name:

Comments:

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






Return to #php
or
Go to some related logs:

w32codecs.deb
z35 suse10
#oe
eterm hit a key to exit
#perl
3ware partition fedora gpt
#lisp
html submit meta-equiv refresh
apt-get install ajunta
#css



Home  |  disclaimer  |  contact  |  submit quotes