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



Comments:

<0> thanks dangermouse!
<1> BigE: btw, that regex coach thing looks useful
<1> downloading now
<2> Ok, this is crap, php is changing my . into a _ because it wants to support register globals; is there anyway to fix this stupidity?
<1> AH!!!!
<1> simple soloution
<1> put a - between type and scope
<1> then explode
<1> it suddenly becomes easy
<3> [jrl]: the . / _ has nothing to do with register_globals
<1> i should have thought of that before
<1> thanks bigE, will check out that regex coach anyway
<2> Stormchaser: sure looks like it does
<4> stupid or idiot ?
<3> [jrl]: What makes you think that?
<5> [jrl]: that's normal PHP form behaviour



<2> Stormchaser: http://ca3.php.net/variables.external, dots in incoming names part
<5> because . isn't a valid variable name character
<2> GarethAdams: Yeah, and thats a register globals problem
<3> [jrl]: I am aware of that.
<6> I hate how javascript treats arrays of form elements.
<5> not related
<2> GarethAdams: its related because w/o register globals, the . would simply be in an array index, and you can have dots in array indexes
<7> hi macca
<8> hi aurora
<8> you smell nice today. is that chanel?
<3> o.O
<7> heh
<9> lol
<7> a cocoanut and lime perfume I found, actually :)
<6> Hmm. Apparently at my new job managers push employees to take up their vacation days. Better get myself a laptop and spend some time in italy :)
<3> HolyGoat: Seen italy. Not bad, but wouldn't want to live there.
<10> why?
<6> The pictures were nice so far.
<9> Stormchaser: Are you disrespecting Italy?
<6> heh
<9> Dont be surprised if you find a horses head in your bed tonight _ !
<3> Dangermouse: I never said I disrespect it, but I wouldn't live there.
<6> I fail to see why I'd be surprised if I'd find a horses head in my bed.
<6> It happens to me all the time.
<3> lol
<7> hehe
<9> :P Neither would I...mainly because my family live there =)
<7> poor horses o.o
<6> Ohhh any mafia members?
<9> I couldn't possibly disclose that information :p
<6> aurora: Yeah, if I find out who does that all the time, man.
<9> no :(
<11> HolyGoat: if he says no, there probably are, if he says yes, he wont be comming back again
<9> lol
<3> lol
<6> heheh
<9> Well, my aunties are pretty scary...
<11> lol
<9> "Aaah bambino! *cheek squeeze*"
<6> It'd be nice to do some godfatherish things while I'm on vacation. Except getting killed of course.
<11> hehe
<6> they have moustaches?
<11> right... except that dieing part
<9> haha..
<7> heh
<3> Fun... When I was translating a site from single-language to multilanguage (template), I managed to miss one page (out of 7) COMPLETELY.
<9> tool.
<11> hehe
<1> how do i capitalise the first char of a string?
<3> ucfirst()
<11> ucfirst IIRC
<1> thanks Stormchaser, itrebal
<11> mmhmm
<12> ownagesbot|meh you a bot?
<13> nope
<11> Jymmm: i am
<12> ownagesbot|meh how many fingers am I holding up
<9> lol
<13> i'll take a guess.. 6?
<12> close enough.
<12> itrebal s/bot/bitch/



<11> Jymmm: oh... right, sorry, i always get the two confused
<12> lol
<11> i need to delete some pictures..
<14> Anyone got a good example of how to use multiple select listboxes on a form, and populate a MySQL DB ENUM type? I'm kinda new to this PHP lark, most of the stuff I have done so far works, but the Multi-Select ENUM always comes across blank.. :-(
<14> Do I need to handle or parse it somehow in the SQL query?
<15> is there some way to count the total number of rows in a table, the total number of rows with column=1, and # of rows with column2=1 with one select statemtn?
<16> hey all
<16> :)
<16> someone told me to come here because it is the official php channel and you guys could help
<3> There is no such thing as "official PHP support channel"
<16> ok well then he lied :P
<16> hopefully you guys can still help :)
<3> or being misinformed
<11> but we are generally a decent one, as long as you dont piss us off :)
<3> !+g1
<16> no prob ^-~
<17> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question
<16> sure thing
<16> I want to import an element from my xml document to my PHP script so that I can append a child. Im having a bit of trouble getting that to work
<16> lemme post what I do have :)
<11> are you using DOM or simpleXML?
<3> pasteBIN it, please
<5> if it's more than 2 lines, use pastebin
<16> ya I am
<16> http://pastebin.com/540784 <- is my script that appends a child to the xml document that was created by this script -> http://pastebin.com/540644
<16> but its giving me a fatal error
<16> Fatal error: Call to a member function appendChild() on a non-object in C:\server\xampp\htdocs\DMproj\test2.php on line 12
<3> what fatal error?
<5> what error?
<5> oh
<16> Im not understanding a concept
<3> there is no function appendChild()... There is append_child, tho
<16> 0_o
<7> there is an appendChild in php5
<9> "DOMNode->appendChild() -- Adds new child at the end of the children"
<5> damn PHPs inconsistent naming conventions
<16> http://us2.php.net/manual/en/function.dom-domnode-appendchild.php
<9> lol
<11> GarethAdams: i say that every day..
<7> don't we all, itrebal?
<11> "was it strip_tags or striptags?"
<3> $elfdesc = $doc->importNode(elfdesc, true); <-- What is this?
<9> itrebal: haha i had that like 10 mins ago!
<3> strip_tags
<11> hehe
<16> hold on
<7> anyway sdwrage is using the php5 dom extension
<18> could you please help me on what's wrong with the syntax on this -> http://pastebin.com/540791
<9> cenoura: What error do you get?
<5> cenoura: which line gives the error?
<5> line 14 needs a semicolon at the end
<16> http://pastebin.com/540794 <- source
<16> there ya go
<18> Dangermouse, something wrong with the brackets after line 7
<7> sdwrage, suggestion, $elfdesc = $elfdescs->item(0)->nodeValue; could be $elfdesc = $elfdescs->textContent; which is kinda nicer
<9> $upload_tmp_dir{$file_name} that?
<5> cenoura: line 14 needs a semicolon at the end
<16> oh ok
<18> Dangermouse, GarethAdams, let me run the code as is (because it's the short version on there)
<7> you were trying to appendChild on a string sdwrage
<18> GarethAdams, oh, it's ok, i forgot to put it there, still the error. but lem me run the code as is in there.
<16> how do I get it to append on an element
<16> ?
<9> cenoura: think you got a parenthesis mismatch on lines 7-8
<16> Im trying to import my element
<7> on line 12 $elfdesctext = $elfdesc->appendChild($elfdesctext); should be $elfdesctext = $elfdescs->appendChild($elfdesctext);
<18> Dangermouse, ok, just a sec pls :)
<11> !tell cenoura about error last line
<11> cenoura: the link there will beautify your code, helping you spot some erros quickly (mismatched parenthesis)
<7> appendChild ads a child within an element, not a sibling, and text nodes can't have children... yet along string types!
<7> gah
<16> I just named it that


Name:

Comments:

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






Return to #php
or
Go to some related logs:

dapper midi /dev/sequencer
#ubuntu
Image::Magick +sharpen + AdaptiveSharpen
#lisp
ubuntu copyright sign
ubuntu missing text xmms
rustysocket
lxr mysql error in your SQL syntax
#lisp
possible qmail-smtpd exited by timeout



Home  |  disclaimer  |  contact  |  submit quotes