Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING'
pls explain what this error is ?
thanks
CAn be anything. Check for missing or misplaced quotes and semicolons.
The code works fine on my machine but when I upload it to my free server(portland.com) then I get this error ... or a blank page with nothing displayed.
??
It's a problem when trying to use variables or constants in require() functions. I guess require()s are parsed before even constants - that's make sense. Try using an include().
YOu can tell all that from one error-ish message and no code snippets? :-)
PHP parses everything in sequence, as it appears in the code. requires are definately NOT parsed before constants. (which would make no sense at all anyway)
The funny thing, though, is that I hade the exact same error and it was caused by require_once. Code: require_once("$cfg[pathIncludes]/auth.inc.php"); I changed to include_once and everything suddenly worked...
Why?