SitePoint Sponsor

User Tag List

Page 3 of 3 FirstFirst 123
Results 51 to 70 of 70

Thread: you != you!

  1. #51
    _ silver trophy ses5909's Avatar
    Join Date
    Jul 2003
    Location
    NoVa
    Posts
    5,466
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by digitman
    Lol..hey you guys, don't take it personally! the client didn't drop me because I asked a question in this forum, but because the error was actually really obvious, and according to him, if i couldn't figure it out on my own i = inexperienced!

    Please post here and tell me what lesson do YOU learn from this? (No, I won't give out $100 PM to the guy who gives the best answer this time! )
    um... was wondering.. how did your client know this was you??
    Sara

  2. #52
    FBI secret agent digitman's Avatar
    Join Date
    Sep 2004
    Location
    Work
    Posts
    697
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it says my email in the fiiiiiiiiiirst post on this thread, stupid me

  3. #53
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    E-mail address in the first post?

    Edit: Haha, oops, didn't refresh before posting (after reading the entire thread)... could this spawn another saga?

  4. #54
    SitePoint Enthusiast
    Join Date
    Jul 2005
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the only comment possible: <advisor edit>No swearing please. - Helge</advisor edit>
    Sorry for language
    Last edited by Helge; Jul 18, 2005 at 06:36. Reason: Removed swearing

  5. #55
    SitePoint Enthusiast plattopus's Avatar
    Join Date
    Aug 2002
    Location
    Melbourne, Australia
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow... right up until the end of page 2 this is a candidate for funniest thread ever. Then it goes straight to "damn, this thread sucks".

    Talk abour your bi-polar threads!

  6. #56
    SitePoint Wizard Dylan B's Avatar
    Join Date
    Jul 2004
    Location
    NYC
    Posts
    1,150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by digitman
    Please post here and tell me what lesson do YOU learn from this?
    Use trim.
    Last edited by Dylan B; Jul 17, 2005 at 16:17.

  7. #57
    SitePoint Wizard Young Twig's Avatar
    Join Date
    Dec 2003
    Location
    Albany, New York
    Posts
    1,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ses5909
    how did your client know this was you??
    His email address is in the first post.

  8. #58
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some thing alike may happen, if getting a variable through GET ot POST and forget to html_entity_decode them

    But trim() also works some times

  9. #59
    l 0 l silver trophybronze trophy lo0ol's Avatar
    Join Date
    Aug 2002
    Location
    Palo Alto
    Posts
    5,329
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dylan B
    Use trim
    rofl. Rep++.

  10. #60
    SitePoint Enthusiast
    Join Date
    Nov 2003
    Location
    Brisbane, QLD
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is really funny about this thread is that after all the suggestions to use trim() in my particular situation html_entity_decode() was the answer. Don't know the reason why but it works for me .

    Quote Originally Posted by REMIYA
    Some thing alike may happen, if getting a variable through GET ot POST and forget to html_entity_decode them
    Colin
    Colin Burns
    http://www.cmsadvantage.com
    Founder & CEO, cmsadvantage
    The premier CMS for Web & Graphic Designers

  11. #61
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm glad, it works for you

  12. #62
    Non-Member demosfen's Avatar
    Join Date
    Nov 2003
    Location
    This is not a legal advice ---------->
    Posts
    623
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by digitman
    I'm facing a really weird problem. I have a script which compares some variables and decides what to do based on the comparison. Now, the problem is really weird.. the variables have the same value, but when I do a if ($var==$var) it returns false. Here's the code:


    PHP Code:
    if ($receiver==$ownerId//i've also tried:if ($receiver===$ownerId)
    {
    logIt("$reciever IS equal to $ownerId");
    } else {
     
    logIt("$ownerId is not equal to $receiver");

    Here's the output the above code gives:


    I'm facing this problem at a number of places in my script, but it usually occurs only with strings. How can I make it do the correct comparison?!
    Use trim()

  13. #63
    SitePoint Wizard Dylan B's Avatar
    Join Date
    Jul 2004
    Location
    NYC
    Posts
    1,150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by demosfen
    Use trim()
    Hahahah

    Three months later.

  14. #64
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dylan B
    Hahahah

    Three months later.
    hahhaaa
    That sounds like a movie
    6 months later ........
    9 months later .........
    3 years later ..........

    in our case ........ always use trim()

  15. #65
    SitePoint Enthusiast -tcwd-'s Avatar
    Join Date
    Mar 2005
    Location
    Toronto, ON, Canada
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dylan B
    Hahahah

    Three months later.
    Yep. That's amazing speed eh?
    - Edward Sun ..blog.. printdoublesided
    Potential client demands a portfolio, but you don't have one? ...
    Easily create your own portfolio!

  16. #66
    Non-Member demosfen's Avatar
    Join Date
    Nov 2003
    Location
    This is not a legal advice ---------->
    Posts
    623
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd post sooner if I saw this thread sooner. It may be still useful to someone with the same problem even if the original poster already passed away

  17. #67
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,251
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by demosfen
    ...even if the original poster already passed away
    his life on earth got trimmed
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  18. #68
    SitePoint Member ruddhim's Avatar
    Join Date
    Mar 2005
    Location
    India
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    couldnt resist but just to say .. This last post by r937 has made it the funniest post of all times.... I m a new Site Point Enthu ... N believe I m never forgetting TRIM() now... As for digitman .... u learnt a lesson n taught us one too

  19. #69
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    absolutely, a lesson for us all always trim() your email out of the posts or use tis function....
    PHP Code:
    function replaceCustomer {
      if(
    $numpty == 'Client') {
       
    str_replace($customer$senseOfHumour$numpty);
    return 
    $numpty;

    Mike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  20. #70
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Dubai
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    following the function
    always remember to echo!
    PHP Code:
      echo "checking result of trim()"
    and yea, comment that once in production environment!


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
  •