...

View Full Version : Case problems using PHP/XAMPP ?



Daniel Israel
01-10-2008, 06:23 PM
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:


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.

Death_oClock
01-10-2008, 09:56 PM
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.

Daniel Israel
01-10-2008, 11:45 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum