Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Location
    Richmond, CA
    Posts
    171
    Thanks
    3
    Thanked 10 Times in 9 Posts

    Case problems using PHP/XAMPP ?

    I've installed XAMPP and had few problems. However, today I'm working on a new project and when I pop in the files and run them, I get the following:

    Fatal error: Call to undefined function getvalue() in C:\xampp\htdocs\include\common.php on line 61

    When I look at that line, it looks like this:

    PHP Code:
    if (strcasecmp(getValue("TrackLogins""false"), "true") == 0) {
                
    // some code....

    Note the capital "V" in the code. Is there some reason that it's looking for the function in all lower case? Did I miss a setting or something? I don't seem to have this problem when I run this in the debugger through PhpED.

    Thanks for any help.

  • #2
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The reason the error is in lower-case is because functions in PHP are not case-sensitive. The error is simply due to the fact that getvalue() does not exist in PHP.

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Location
    Richmond, CA
    Posts
    171
    Thanks
    3
    Thanked 10 Times in 9 Posts
    Quote Originally Posted by Death_oClock View Post
    The reason the error is in lower-case is because functions in PHP are not case-sensitive. The error is simply due to the fact that getvalue() does not exist in PHP.
    I didn't know they were case-insensitive. That explains that...

    However, I defined the function myself (above this) and it runs on other PHP servers, but not on XAMPP.


  •  

    Posting Permissions

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