If the const is not set thats exactly what you would get. PHP assumes it to be a string if the const is not available. However you should get a notice ( / warning dont know which one) about it.
–
PeeHaaJan 14 '11 at 19:41

2

I love these users being afraid of showing their code out. Dudes, we need codes or how the hell are we supposed to solve this? Guessing? Also, the error is in line 30 and you post line 28 / 14? Ok, i can guess what's on line 30 but wth! Nobody will steal your code!
–
JefffreyJan 14 '11 at 20:46

I Have posted the code line where I am getting the error pls see the update
–
OM The EternityJan 14 '11 at 20:03

@OmThe: What's the code at line 14 of login.php as indicated by the warning (in E:\wamp\www\dfms\admin\login.php on line 14)? The code you posted isn't directly relevant to the problem...
–
ircmaxellJan 14 '11 at 20:06

@ircmaxell Its main issue is that it cannot find the class file on but i have the files at the required location
–
OM The EternityJan 14 '11 at 20:13

@OMT: Post line 14 which is where the warning is telling you the problem is. Better yet, change include_once to require_once, since you need it to continue (But still post the line).
–
ircmaxellJan 14 '11 at 20:16

Is there any Problem in my WAMP settings? as the same code was working in my other machine in office
–
OM The EternityJan 14 '11 at 20:16

Looks like you expect a constant ADMIN_CLASS_DIR to be set, when it's not. PHP will issue a notice and then assume that the constant is a string literal. Where do you define this constant? You need to include that code in your script.

This is the admin section where I am facing this problem, ON THE CONTRARY, My client section(Front End) is working perfectly fine, and on other machine there was no such error.
–
OM The EternityJan 14 '11 at 19:41

Most likely, the include_path is different on the other machine.
–
troelsknJan 15 '11 at 11:35