@# 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> tdd1984: Yes. When I put a quote in front of 'dfd"', PHP shows no parse error.
<1> ("mysql117.secureserver.net","test","test"
<1> thats how i have it
<1> but with )
<0> Gimp_: Well, it certainly doesn't make much sense to me for him to use it there.
<0> tdd1984: Clearly, there's a disconnect between what you pasted and what is in your PHP, then.
<2> TML: exactly my thoughts. and he uses a variable in it that doesn't exist.
<0> tdd1984: Because that's the only parse error in what you pasted.
<1> well
<1> thats what im saying i can't figure it out
<1> there is a pare error somewhere else
<2> TML: actually, hes missing quotes in a whole bunch of array keys, which will post a parse error. oh wait. thats just a notice on e_strict
<0> tdd1984: What you pasted and your live code don't match.
<1> well duh
<1> im not gonna post my username, and p***word



<3> deja vu
<1> i just backspeaced that out
<1> http://pastebin.com/712225
<1> there a new pastebin
<1> lol if that makes a differnce
<0> tdd1984: There are no parse errors in that document, as I've said a number of times now.
<4> have a little problem here using mime mails with content-type: multipart/alternative. Every clients I use seems to read the first part of the message, regardless of the others. (an overlook at the mime rfc told me to send the richest formatting to the bottom) anyone with any clue or link to some "tutorial"... that would be much appreciated.
<1> http://indianacl***ifiedads.com/categories/cl***ifieds/contact.php?type-id=206&userid=34
<1> TML: then why do i get a parse error for
<5> :)
<0> tdd1984: Becuase what you're pasting and what your live code is DO NOT MATCH.
<0> There's something you're not telling us. Unfortunately for you, I left my crystal ball with my wife last time I visited her, so you're going to have to figure out what it is yourself.
<5> tdd1984: youre a pro php coder so it should be easy to figure out :)
<1> errrr: do you know whats wrong
<1> TML: and yes there is its the same contact.php
<1> file
<5> pebkac?
<0> Pollita: Ever watch "The West Wing"?
<0> tdd1984: No, it's really, really, REALLY not.
<4> hem... anyone have a clue of which chan should I ask ?
<1> TML: why would i post the wrong code for
<0> strav: Send one to joey@hashphp.org
<1> that would just be non since
<0> tdd1984: You're clearly not doing it intentionally, but that doesn't mean you're not doing it. You need to think of what you're forgetting to mention/include.
<0> And the word is "nonsense"
<1> tml: im posting the write file
<1> any one know whats gonna on
<0> tdd1984: Fine by me, refuse to accept the truth. It only hurts you, not me.
<1> TML: lol okay if you believe so
<1> moron
<6> how would i do this string manipulation, what function would be best? if i wanted to match X and every word after that
<5> rofl
<7> whoa big channel
<7> anyone here have experience with eclipse + php ?
<0> typewriter: strstr()
<6> friend
<6> i thank you
<8> i'm using preg_split to explode a string. i use the PREG_SPLIT_DELIM_CAPTURE flag to get the captured delimeter ... but is there any way to identify a capture explicitly?
<0> ^Artnez: No
<8> HTML: no as in completely impossible or no as in it's possible, but not with more than one operation
<8> ?
<0> ^Artnez: No as in there's no way to make preg_split() identify what was in a capture explicitly.
<8> HTML: well what i want to do is know which element was a capture and which wasnt
<0> ^Artnez: That would be so difficult to do that it's almost certainly not worth the effort required.
<8> what would be the alternative then?
<8> see i'm trying to process a string (usually contained in a seperate file) that has a special format. It's sort of a template engine, but not entirely. Because i need to support nesting, i want to split each "function" and "loop" into blocks that will be parsed individually.
<0> You'd have to write something that can parse the regex into atomic subexpressions, then run each match through all possible subexpressions, and see whether it came from that or not.
<0> ^Artnez: Correctly supporting nesting in regex is next to impossible.
<8> no, it's possible
<8> using (?R)
<0> That's not correctly supporting nesting, that allowing for recursion.
<8> the problem with nesting in regex is identifying the open tag and close tag. when it's nested, it's possible to identify the open/close tags properly
<8> that way you can parse each nested expresion/function/etc individually
<8> however i could be doing it in an inneficient manner (using regex). if the "template" broken, it can take up to 0.9 seconds to execute but if it's not broken (formatted properly) it'll process a fairly large file in under 0.005 seconds
<8> i've been trying to think of another way to do it though... but came out stumped :-/
<9> where do ppl get that common wiki webpage?
<9> with that common wiki style you see on most wikis
<5> mediawiki
<9> ah
<0> chron: Most wikis I've seen use pretty much the same style, regardless of the engine
<5> the default one on mediawiki is Monobook I think



<9> and i'd only need php?
<9> would i need sql too?
<0> I think mediawiki requires MySQL
<0> But there are file-based wikis out there.
<9> what do you mean by file-based?
<0> *blink*
<0> Well...which part of "file-based" confuses you?
<6> TML: what if i wanted to match from X to not the end of the string but to point Y
<6> what would i use then?
<0> Instead of being SQL-based, it's file-based.
<0> typewriter: You'd create a substr() first from 0 to Y, then use strstr() on that
<10> Is Zend's Framework any good?
<9> ok that's what i thought
<9> so instead of keeping info in databases, it keeps it in directories
<9> gotcha
<8> HTML: I think i figured a way to do it. the regex to match the open and close tags also matches the open/close tags as subpatterns. there are always 4 subpatterns returned. so if subpattern A matches subpattern A+3, i know everything in between is a matches regex
<0> It keeps it in files.
<0> ^Artnez: Where are you getting the "H"?
<8> TML: sorry, i'm using XCHAT and it's bugged
<8> it shows: %H<%HTML%H>%H for you
<6> ok bnut what if X isnt the first char but the middle of a string, use strpos?
<0> ^Artnez: TML
<0> Not HTML
<8> yes, i typed that above ^^^ .. sorry :(
<9> ROFL
<8> haha, actually that is kind of a pun isn't it TML
<7> php variable scope seems all messed up
<11> yo TML, what be the haps?
<12> Jymmm, hey
<8> WebLOCH: more detail?
<12> night
<7> ^Artnez: well im fairly new to php, but if i create a cl*** and have methods in that cl***, to access the fields of that cl*** from inside a function i have to use the global keyword
<0> Jymmm: *Shrug*
<7> ^Artnez: i think i could really do with a good cl*** building guide for php
<0> WebLOCH: php.net/oop
<7> TML: i dont really know what that comments meant to mean, im aware its (supposed to be) oop
<11> TML had a question about your resent adventure... Your wife has no simplings does she?
<11> siblings
<8> WebLOCH: OOP means Object Oriented Programming, a cl*** is instantiated as an Object (there can be one cl***, but multiple objects of that cl***). For example, 'Car' is a cl***... Mistubishi is an Object
<7> ^Artnez: i know, i write java typically :P
<0> Jymmm: she does
<7> ^Artnez: and i know whats NOT oop, as i spent 4 years writing commercial vb6 :P
<8> WebLOCH: in that case, if you want to access a cl*** member, use the $this keyword
<8> $this -> cl***_member
<11> TML: Ok, does that mean when the inlaws keel over, you two get a stack in the farm?
<11> stake
<0> Jymmm: ....
<7> ^Artnez: the member i was using was a cart array of items (arbitrary names), however when i used this-> it got ansy
<0> maybe
<13> Does anyone have an example of OO PHP? I've never really been able to figure out what I could use it for...
<11> TML: It be a real shame not to get ANYTHING for all the blood, sweat, and tears you gave.
<11> a "thank you" only carrys one so far
<8> guys if you want get accustomed to PHP OOP i suggest googling for it.. there are TONS of tutorials. Read 3 full tutorials and i promise you'll get it.
<11> ha!
<8> just remember that OOP is just a style of coding.. it's not something that will give you something that you can't get with procedural. there are alot of people that stand firm against OOP
<7> ^Artnez: ive digested two books on it, it still seems counter intuitive at times, but that could be a mixture of being new and having eclipse :P
<8> WebLOCH: trust me, going from Java to PHP OOP is like going from wiping your *** with silk to wiping your *** with cardboard
<0> Jymmm: It's not really the sort of thing one asks, though, you know?
<11> Yeah, as soon as they get to polymorphism, they're screwed!
<7> ^Artnez: hahaha
<14> how do you wipe your *** with cardboard?
<8> Mike: painfully
<0> ^Artnez: I'd hardly refer to ANYTHING in Java as "wiping your *** with silk"
<8> dont try flushing it either
<7> ^Artnez: if i use $this->$items[blah] the page tells me i cant access an empty property, if i use $global items first it works as i intended
<8> TML: touche. just making a comparison lol
<8> WebLOCH: use $this -> itmes
<8> *$this -> items
<15> How can I see the logged in user on a .htaccess protected page
<15> like who is logged in to see page
<11> TML: No, but you took 10 days off of work, drive hundreds of miles, worked 10 days and nights for someone else, and didn't get compensated. I understnad helping others, but that seems to be a bit extreme
<16> hello
<7> Is there any particular reason for that ^Artnez ? Does it make a difference ?
<17> I am trying to modify a script so that it logs visitors to a blog. With this javascript code: http://pastebin.com/712265, what kind of PHP would need to be on the other end to take whatever those variables are and store them?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#math
#linux
Perl \xC3 Unrecognized character
#gentoo
wg511v2 airsnort
#perl
#kde
#centos
#math
entrance_edit



Home  |  disclaimer  |  contact  |  submit quotes