Page 1 of 1

How to fix this error

Posted: Wed Aug 27, 2014 2:02 am
by caioebruno
"Strict Standards: Only variables should be passed by reference in /code/opentape_common.php on line 283"


if ( strcmp($file, ".") && strcmp($file, "..") && !strcasecmp(end(explode(".", $file)), "mp3")) {


Thanks!

Re: How to fix this error

Posted: Wed Aug 27, 2014 2:53 am
by requinix

Code: Select all

end(explode(".", $file))
end() wants a reference and you're not giving it one.

Use pathinfo to get the file extension.

Re: How to fix this error

Posted: Wed Aug 27, 2014 2:58 am
by caioebruno
can you help me with this? I am a layman in the subject

Re: How to fix this error

Posted: Wed Aug 27, 2014 11:27 am
by requinix
I tried helping you. Is there something specifically that you need? Did you check that link, read the documentation there, and perhaps read through some of the user comments?