Page 1 of 1

Strict Standards Error...

Posted: Sun May 26, 2013 3:32 am
by louiegiezer
Strict Standards: Only variables should be passed by reference in

i have this error in this line...

$page = substr(end(explode('/', $_SERVER['SCRIPT_NAME'])), 0, -4);

Re: Strict Standards Error...

Posted: Sun May 26, 2013 6:57 am
by Helx
Does the error completely disrupt the functionality of the script or can it be ignored?
(I'm not quite sure what the error means but it doesn't sound very important tbh :3 )

Re: Strict Standards Error...

Posted: Sun May 26, 2013 7:04 am
by louiegiezer
the script works fine....
but they appear that line in all pages...

Re: Strict Standards Error...

Posted: Sun May 26, 2013 7:21 am
by Helx
Well then.

Just put
error_reporting(E_ERROR);
near the top of all pages doing that.
See how it goes.

Re: Strict Standards Error...

Posted: Sun May 26, 2013 7:29 am
by louiegiezer
well i actually do that... it fix the error... but what is that? is it a problem of the script? or something?....

Re: Strict Standards Error...

Posted: Sun May 26, 2013 7:32 am
by Helx
It may have been because you had used a super-global instead of a standard variable.
If you want to know more it would pay to Google it.

Re: Strict Standards Error...

Posted: Sun May 26, 2013 7:35 am
by louiegiezer
ohh i.c
anyway thanks dude... :)