Strict Standards Error...

Ask about a PHP problem here.
Post Reply
User avatar
louiegiezer
Posts: 57
Joined: Fri Oct 21, 2011 11:31 am
Contact:

Strict Standards Error...

Post 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);
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Strict Standards Error...

Post 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 )
User avatar
louiegiezer
Posts: 57
Joined: Fri Oct 21, 2011 11:31 am
Contact:

Re: Strict Standards Error...

Post by louiegiezer »

the script works fine....
but they appear that line in all pages...
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Strict Standards Error...

Post by Helx »

Well then.

Just put

[syntax=php]error_reporting(E_ERROR);[/syntax]
near the top of all pages doing that.
See how it goes.
User avatar
louiegiezer
Posts: 57
Joined: Fri Oct 21, 2011 11:31 am
Contact:

Re: Strict Standards Error...

Post by louiegiezer »

well i actually do that... it fix the error... but what is that? is it a problem of the script? or something?....
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Strict Standards Error...

Post 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.
User avatar
louiegiezer
Posts: 57
Joined: Fri Oct 21, 2011 11:31 am
Contact:

Re: Strict Standards Error...

Post by louiegiezer »

ohh i.c
anyway thanks dude... :)
Post Reply