SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What would cause preg_match_all to error?

    " "

  2. #2
    Use The Cloud
    Join Date
    Jan 2006
    Location
    Boise, ID
    Posts
    556
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wolf_22 View Post
    " "
    This is a very poor quality post, you will need to provide more specifics in order to get a useful answer.

    "What would cause preg_match_all to error?"

    • Syntax error
    • Too many parameters
    • Not enough parameters
    • Invalid parameter(s)
    Brad Hanson, Web Applications & Scalability Specialist
    ► Is your website outgrowing its current hosting solution?
    ► PM me for a FREE scalability consult!
    ► USA Based: Available by Phone, Skype, AIM, and E-mail.

  3. #3
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a very poor quality post...
    May I suggest considering an alternate avenue of tact or diplomacy?

    Instead of blurting out that "This is a very poor quality post..." and initiating a passive-aggressive insult or negative criticism remark, why not simply withhold your "personal" opinion (because we're all "professionals" around here), include your theoretical possibilities or suggestions / details, and add "Could you supply us with more information about your problem?"

    You will need to provide more specifics in order to get a useful answer.
    Like the other useful answer about "naive British drivers"? That really helped me out bunches...

    Judging from your reply, 75% of your bulleted list consisted of parameter concerns, whereas the other 25% consisted of "syntax problems". Since a parameter issue would, in essence, be a syntax issue, it seems logical to me that my problems at the moment consist of parameter problems. So I think I received a great answer from you that is very useful.

    Thanks bhanson, and I'll mark the "horrible death-plague posts of detail atrophy" to my list of "things to strive for".

  4. #4
    Use The Cloud
    Join Date
    Jan 2006
    Location
    Boise, ID
    Posts
    556
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wolf_22 View Post
    May I suggest considering an alternate avenue of tact or diplomacy?

    Instead of blurting out that "This is a very poor quality post..." and initiating a passive-aggressive insult or negative criticism remark, why not simply withhold your "personal" opinion (because we're all "professionals" around here), include your theoretical possibilities or suggestions / details, and add "Could you supply us with more information about your problem?"



    Like the other useful answer about "naive British drivers"? That really helped me out bunches...

    Judging from your reply, 75% of your bulleted list consisted of parameter concerns, whereas the other 25% consisted of "syntax problems". Since a parameter issue would, in essence, be a syntax issue, it seems logical to me that my problems at the moment consist of parameter problems. So I think I received a great answer from you that is very useful.

    Thanks bhanson, and I'll mark the "horrible death-plague posts of detail atrophy" to my list of "things to strive for".
    On the contrary, I did not intend that post to be insulting or passive aggressive, and it is not my "personal" opinion, but rather a hard fact. Such a short post with hardly any content and that sparse on details is a practically the definition of a poor quality post.

    I have a limited amount of time to contribute to the community so I find it most efficient if I get right to the point and leave pleasantries out of the picture. Concerning the drivers analogy I used in the other thread, I could have taken more time to come up with a more politically correct response, or just use the first thing I think of and move on to another thread to help someone else. I didn't see the analogy being incredibly rude or disrespectful so I opted to take the route of helping more people, instead of spending unnecessary time "fluffing" the response as to not offend the 1% of readers who interpret it incorrectly.

    I did provide the most comprehensive answer I could to the question you asked, but without details the question might as well be: "What causes a PHP function to error?" Which is basically my point. You asked about preg_match_all(), but didn't provide enough information to get an answer specifically relating to that function.

    Another reason my replies may appear blunt is I realize that a good portion of SitePoint's members are not from a native English speaking country. In these scenarios I try to leave inflection out as much as possible while writing simple sentences.
    Brad Hanson, Web Applications & Scalability Specialist
    ► Is your website outgrowing its current hosting solution?
    ► PM me for a FREE scalability consult!
    ► USA Based: Available by Phone, Skype, AIM, and E-mail.

  5. #5
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bhanson View Post
    On the contrary, I did not intend that post to be insulting or passive aggressive, and it is not my "personal" opinion, but rather a hard fact. Such a short post with hardly any content and that sparse on details is a practically the definition of a poor quality post.

    I have a limited amount of time to contribute to the community so I find it most efficient if I get right to the point and leave pleasantries out of the picture. Concerning the drivers analogy I used in the other thread, I could have taken more time to come up with a more politically correct response, or just use the first thing I think of and move on to another thread to help someone else. I didn't see the analogy being incredibly rude or disrespectful so I opted to take the route of helping more people, instead of spending unnecessary time "fluffing" the response as to not offend the 1% of readers who interpret it incorrectly.

    I did provide the most comprehensive answer I could to the question you asked, but without details the question might as well be: "What causes a PHP function to error?" Which is basically my point. You asked about preg_match_all(), but didn't provide enough information to get an answer specifically relating to that function.

    Another reason my replies may appear blunt is I realize that a good portion of SitePoint's members are not from a native English speaking country. In these scenarios I try to leave inflection out as much as possible while writing simple sentences.

  6. #6
    SitePoint Guru
    Join Date
    Jul 2005
    Location
    Orlando
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The original post was poor. It was entirely too vague. The OP is lucky he got someone as helpful as he did. I just ignore topics like this that are vague and not sure what they're asking and go move on to someone who took the time to actually ask a question.

  7. #7
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by UFTimmy View Post
    The original post was poor. It was entirely too vague. The OP is lucky he got someone as helpful as he did. I just ignore topics like this that are vague and not sure what they're asking and go move on to someone who took the time to actually ask a question.
    I think something is wrong with my SitePoint response panel--I can't find the Pampers smiley...

  8. #8
    SitePoint Guru
    Join Date
    Jul 2005
    Location
    Orlando
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wolf_22 View Post
    I think something is wrong with my SitePoint response panel--I can't find the Pampers smiley...
    Thank you for providing me with an example of your tact and diplomacy you were mentioning in your first post.

  9. #9
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by UFTimmy View Post
    Thank you for providing me with an example of your tact and diplomacy you were mentioning in your first post.
    Still upset about everything, I see...

  10. #10
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wolf_22 View Post
    " "
    In the absence of an example, I'm going to go with a Layer 8 problem.

    That said, you could look at the PHP source code for a truly definitive answer.

  11. #11
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No thanks. I already fixed it.


  12. #12
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the future though, please do provide more information. Being able to see the failing code, for example, helps others immensely when trying to provide a useful response.

  13. #13
    SitePoint Member
    Join Date
    Oct 2008
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think my IQ just dropped from reading this.
    Need high quality, fast, and secure coding?

  14. #14
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,710
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    …And we’re back.

    Okay, I guess this is required… I just wish that writing a book in order to get a point across to a bunch of downward spirals could be avoided, but apparently not…

    The first thing I need to do here is clear something up with the unique person, code-named UFTimmy. Let’s recall your post in which my response thereto acted as a catalyst for your hand-slap regarding “tact / diplomacy”:

    The original post was poor. It was entirely too vague. The OP is lucky he got someone as helpful as he did. I just ignore topics like this that are vague and not sure what they're asking and go move on to someone who took the time to actually ask a question.

    Blah, blah, blah... After analyzing this like an anal developer who spends too much time on internet forums would, I can summarily assume that not only are you a kid who makes impulse decisions, but also, a hypocrite, and someone who lacks basic understanding of the fact that not everyone communicates and or learns in the same way as Mr. UFTimmy does.

    Let me spell it out for you:
    A.) You’re a hypocrite because you responded to this. You impulsively assume this to be an “ignorant topic” without even considering anything outside the box or asking logical, productive questions instead of making blatant, negative remarks that are based on someone else’s views (if not your own). This entire thread somewhat reminds me of that old joke about 'x' number of people and the light bulb…
    B.) You are short-sighted with a narrow-minded stance on universal communication and general respect for others. The next time I wish to feel like a little two-year-old at mommy and daddy’s dinner table listening to them discuss my disciplinary actions while they pass the green beans around, I’ll make sure to send you a PM.
    C.) …I did ask a question, it just wasn’t in Larry, Curly, and Moe’s envelope. …Besides, what if I did include an example and it was either too short, or too long, or missing some critical component that only someone with more experience would know about or had red font with an underline here-and-there…? How many snotty-nosed brats would have made witty responses then?
    D.) You have feathers, a big beak, and prefer carrion over fresh food.

    So next time you choose to start a fight with a complete stranger over something that doesn’t even concern you, let alone, determine how long life will remain on Earth, remember that you should only speak in your turn, when needed, and never accuse someone of hitting you after you first hit them after they were already bruised. Can you at least read between those lines or do I have to include a disclaimer and an entrenched constitution with everyone’s signature verifying its legitimacy and virtue?

    Now for kommando… First of all, why are you even chipping in on this? The kids were fast asleep and now you’ve probably woke them up!

    And finally, bhanson, the person who has to fit SitePoint forum responses into his daily agenda: The reason I asked the question that I asked (everyone hold their breath) was because of the fact that our wonderfully written PHP manual states that preg_match_all( ) returns the number of full pattern matches (which might be zero), or FALSE if an error occurred. With that being said, it would be easy to assume that it’s either NOT FALSE or friggin’ broken. I never saw anything on there stating why it would be broken, though—once again, something that only a new guy on the block would pick up on. If you or any of the other people around here (including dumb and dumber) have read and memorized every single word / sentence within the online manual, have programmed a life-total of a million lines of PHP code from scratch, and have started your own business all while giving Billy Gates a nuggy over a night of poker and ravioli, CONGRATULATIONS! Not everyone (yes, even some of the hardcore geeks around here) really take the time to fine-tune interpersonal details or systematically research and perfect questions because, believe it or not, sometimes we lack time, too.

    You know what it’s called, though, when someone asks a question (however ambiguous, amorphous, amphibological, bewildering, bleary, blurred, cloudy, dark, dim, doubtful, dreamlike, dubious, enigmatic, equivocal, faint, fuzzy, generalized, hazy, ill-defined, impalpable, imprecise, indefinite, indeterminate, indistinct, inexplicable, lax, loose, misunderstood, muddy, nebulous, obscure, perplexing, problematic, puzzling, questionable, shadowy, superficial, tenebrous, uncertain, unclear, undetermined, inexplicit, unintelligible, unknown, unsettled, unspecified, unsure it is)? It’s called “L E A R N I N G”.

    Again, that’s “L E A R N I N G”.

    You know what it’s called when someone belittles or impulsively upstages someone for asking a question for things like not knowing how to ask the right questions? That’s called “educational genocide” and to hell with you or anyone else around here who does it. I could care less if you or anyone thinks that my question(s) lack a certain amount of structural flare or direction and I assure you that you will eventually, one day, get over it, this idea that somehow, people are just different. For now, however, just try to keep your mind occupied and see someone new. The pain eventually dies down and your heart will go on...

    The basic issue that keeps perpetuating itself here is the constant loss of respect for others. Am I guilty of this? Sure, but I only resorted to this after first blood was drawn from me. Do you need to shake my hand in real life to believe that it’s not nice to attack someone simply because they created a “very poor quality post”? I’m willing to bet that no matter the level of technical expertise my question outlined or foreshadowed, there would have been at least 1 person on Earth with a ***** about it. The amazing thing (or ironic concern) out of this, though, is that there are a number of avenues that could have been used in this:

    1.) You could have decided to not answer it...
    2.) A moderator or admin could have reviewed it...
    3.) Healthy communication could have been explored...

    We’ve already witnessed what someone does if they lack willpower, so #1 is basically burnt in the oven because some people are just so unstable around here that apparently they can’t even willingly redirect their ADHD to something that would be more productive in their lives, like human relationships, dietary health, or YouPorn.

    So that leaves us with #2, but where are they? Apparently, they must be of like-mind or off voting on something they “rightfully deserve”, such as some cute little label that goes underneath their username… That’s very unfortunate for us all, but especially, those amongst us who have a knack for accidentally creating posts that lower the IQ of various patrons.

    Lastly, we have #3. Well, I guess I committed a cardinal sin with that one, right guys? Heaven forbid anyone around here who lacks possession of a Pentium 4 for a Modula Oblongata ever ask a question they might falter on delivery. After all, all I see is “Blonde, Brunette, Red-Head…” Oh, and thanks for the nationalistic consideration when replying, bhanson. I’m sure someone who programs websites over in Nigeria wakes up everyday where his life’s existence hinders on whether or not he understands the contents of this thread. You deserve an award for your international foresight.

    Look, it’s not like I’ve coded this crap all my life like some of you may have (obviously) and even for those amongst us who are savant Gods of programming prowess: not everyone thinks as efficiently or concisely as you do, so get over yourselves, for Christ’s sake. The world isn’t going to end by my post. I feel like Josh Lymen in that episode of “The West Wing” where he has Donna post to some online bulletin board and winds up being practically placed on White House arrest…

    Save the witty replies and long, drawn-out responses that pick-and-peck at every damn detail. What you guys did was wrong, plain and simple, and I don’t feel bad about what I asked the way I asked it. For someone who is a bit more down to Earth, they may or may not understand what I was asking, but I guarantee you that they would have been a bit more open-minded about it and approach it with a bit more tact or empathy. Nobody should ever come on to these forums and feel like some public enemy just because his question may have been loose or vague. Talk about elitism... I mean, good God. Look at all these stupid responses over nothing more than a mere question! Am I the only one here who thinks this is retarded? Yeah, maybe my question was a falling rock, but look at your guy’s responses. If you ask me, they are completely unproportional and absolutely ridiculous. Wait a minute, am I on the YouTube comments page???

  15. #15
    Use The Cloud
    Join Date
    Jan 2006
    Location
    Boise, ID
    Posts
    556
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not even sure why you're starting a debate about this, everything I've said thus far in this thread has been a fact. You really don't want to start a debate with me.

    Quote Originally Posted by Wolf_22 View Post
    ...the fact that our wonderfully written PHP manual states that preg_match_all( ) returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
    This is true, that is EXACTLY what the function does.

    Quote Originally Posted by Wolf_22 View Post
    With that being said, it would be easy to assume that it’s either NOT FALSE or friggin’ broken.
    That doesn't even make sense, you just said yourself what the function does.

    Quote Originally Posted by Wolf_22 View Post
    I never saw anything on there stating why it would be broken, though—once again, something that only a new guy on the block would pick up on. <unrelated rant> Not everyone (yes, even some of the hardcore geeks around here) really take the time to fine-tune interpersonal details or systematically research and perfect questions because, believe it or not, sometimes we lack time, too.
    I don't memorize every function, I use the PHP manual to look things up. It only takes a second and it tells you exactly what things do. The function isn't broken. If you made a mistake in writing your code and you're getting a syntax error, then the error will tell you exactly what is wrong with your program. In your post you failed to include an error message, any code, or a description of what you're trying to do.

    Everyone lacks time, but if you expect other people to spend their time and energy helping you pro bono then you should at least put a minimal amount of effort into your post. I'm not talking about incredibly intricate details, just enough to actually describe the problem.

    • What are you trying to do?
    • The code you've got so far
    • Any error messages


    This is even listed in the read before you post thread sticked at the top of this forum.

    Quote Originally Posted by Wolf_22 View Post
    You know what it’s called, though, when someone asks a question <sardonic passage>? It’s called “L E A R N I N G”.
    Of course, I never said it wasn't.

    Quote Originally Posted by Wolf_22 View Post
    You know what it’s called when someone belittles or impulsively upstages someone for asking a question for things like not knowing how to ask the right questions?
    I never insulted or belittled you, I simply pointed out your post sucked. There's a big difference between stating the obvious and personal attacks, I never go near the latter.

    Quote Originally Posted by Wolf_22 View Post
    That’s called “educational genocide” and to hell with you or anyone else around here who does it. I could care less if you or anyone thinks that my question(s) lack a certain amount of structural flare or direction and I assure you that you will eventually, one day, get over it, this idea that somehow, people are just different. For now, however, just try to keep your mind occupied and see someone new. The pain eventually dies down and your heart will go on...
    It's not about personal differences or superfluous "flair," but rather providing necessisary details for people to actually help you.

    Quote Originally Posted by Wolf_22 View Post
    The basic issue that keeps perpetuating itself here is the constant loss of respect for others. <rant> The amazing thing (or ironic concern) out of this, though, is that there are a number of avenues that could have been used in this:

    ...
    3.) Healthy communication could have been explored...
    ...

    Lastly, we have #3. Well, I guess I committed a cardinal sin with that one, right guys? Heaven forbid anyone around here who lacks possession of a Pentium 4 for a Modula Oblongata ever ask a question they might falter on delivery. After all, all I see is “Blonde, Brunette, Red-Head…” Oh, and thanks for the nationalistic consideration when replying, bhanson. I’m sure someone who programs websites over in Nigeria wakes up everyday where his life’s existence hinders on whether or not he understands the contents of this thread. You deserve an award for your international foresight.
    I'm not sure what I have done to deserve this sarcasm. You are from a non-native English speaking country yourself, I've interacted with many people from India with only very basic English skills and speaking in basic form helps. I'm not a linguist specialist, but I make an effort where I can.

    Quote Originally Posted by Wolf_22 View Post
    Save the witty replies and long, drawn-out responses that pick-and-peck at every damn detail.
    What detail? You didn't provide any.

    Quote Originally Posted by Wolf_22 View Post
    ...I don’t feel bad about what I asked the way I asked it.
    When creating a topic, writing a complete post is beneficial for all parties involved. When you leave out required details someone has to ask about them, and then in turn you have to reply with them anyway to get an answer. If you simply include them in the first place then all is well.

    Quote Originally Posted by Wolf_22 View Post
    For someone who is a bit more down to Earth, they may or may not understand what I was asking, but I guarantee you that they would have been a bit more open-minded about it and approach it with a bit more tact or empathy. Nobody should ever come on to these forums and feel like some public enemy just because his question may have been loose or vague. Talk about elitism... I mean, good God. Look at all these stupid responses over nothing more than a mere question! Am I the only one here who thinks this is retarded? Yeah, maybe my question was a falling rock, but look at your guy’s responses. If you ask me, they are completely unproportional and absolutely ridiculous. Wait a minute, am I on the YouTube comments page???
    I don't see how any of my posts in this thread are elitist. I replied to your post with a comment about your content (which is lacking), how to fix it, and then proceeded to provide a "best guess" answer.

    Are you suggesting I use alternative wording? Something like this?

    Good day, Sir! "What would cause preg_match_all to error?" is a very general question, and it would be helpful to the community if you could include some extra details about what you're trying to accomplish. Showing us the error message and the code that is generating the error will be needed for us to assist you in this matter.
    To me, it's unnecessarily verbose and says the exact same thing I did in my post. You would still have to reply to the thread again and provide the extra details, but if you feel this type of post is "acceptable" then you can clearly see how these lengthly, tactful, empathetic posts would be tiresome to write. Remember, people are helping you out of their own free will, you're not paying for support from a company where these types of responses are more expected.
    Brad Hanson, Web Applications & Scalability Specialist
    ► Is your website outgrowing its current hosting solution?
    ► PM me for a FREE scalability consult!
    ► USA Based: Available by Phone, Skype, AIM, and E-mail.

  16. #16
    SitePoint Guru
    Join Date
    Jul 2005
    Location
    Orlando
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My mother always said something that I've found more profound as I've gotten older.

    If you're mad at more than 3 people, it's probably you.

    Wolf, had you just taken 30 seconds to explain your question you would have gotten an answer you could have used. We're not mind readers.

    I'm not even going to begin to address your personal attacks except to say I find it humorous I'm the one who spends too much time on this message board when you have twice the posts I do.

  17. #17
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    All I can say is you guys have ALOT of time on your hands, writing such large posts backing yourself up in such a needless situation.

    He posted a first post which made it unclear what he was after. He doesn't need the help any more.

    Get over it.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •