Jump to content

PHP Strict Standards: Only variables should be passed by reference


desception

Recommended Posts

Only recent versions of PHP (5.5+ I think) allow you to pass a non-variable to end(). If you're running an earlier version then you need a temporary variable.

 

But there's a better way to get file extensions:

$end = pathinfo($thum, PATHINFO_EXTENSION);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.