lower case function names

Discussion in 'PHP' started by trichnosis, Feb 22, 2009.

  1. #1
    Hi;

    One of my clients is using a joomla 1.0.x web site.

    And I wrote some piece of codes for his web site but i have a bit strange problem.

    The problem is that functions name with containing 'I' letter is giving error.

    for example, IsHomePage() function gives me "undifined function on classname::ishomepage() line number" error.

    I have solved this problem with changing the function name:) but what may cause this error?

    Thanks
     
    trichnosis, Feb 22, 2009 IP
  2. dazst

    dazst Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #2
    Check I [Uppercase i] or l [lowercase L]
     
    dazst, Feb 22, 2009 IP
  3. flix999

    flix999 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use [lowercase] :p

    of try [lowercase] this should works
     
    flix999, Feb 22, 2009 IP
  4. mustafaneguib

    mustafaneguib Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    your function name with the upper case 'I' had not been defined, but were defined with the lowercase 'i'. identity names are case sensitive in PHP so you have to keep in check that your names are properly declared and used.

    hope this helps.
     
    mustafaneguib, Feb 22, 2009 IP
  5. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Based on your "recent blog" entry I surmise that you are Turkish.

    Be very careful that you are using the correct letter I. As I recall, the English letter i is two different keys on the Turkish keyboard depending on whether you want lower- or upper-case.
     
    SmallPotatoes, Feb 22, 2009 IP