Hide file extension information cpg1.4 Hide file extension information cpg1.4
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Hide file extension information cpg1.4

Started by JohannM, March 21, 2007, 12:26:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohannM

Hi

I need to hide the file extention (.jpg) in thumbnails.php and displayimage.php.

I tried everything, nothing works.

But also something for the future ...

I found this function on the web:

function strip_ext($name)
    {
          $ext = strrchr($name, '.');
          if($ext !== false)
          {
              $name = substr($name, 0, -strlen($ext));
          }
          return $name;
      }

Could it be implemented somewhere in admin to enable/disable "hide file extentions" ?