note 89822 deleted from function.strrchr by thiago

From: Date: Tue, 24 Mar 2009 19:07:23 +0000
Subject: note 89822 deleted from function.strrchr by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152403@lists.php.net to get a copy of this message
Note Submitter: dhut ---- Maybe it's more secure to use basename() in finding extention, because a directory-name could contain a dot also... $file is a path with filename $new_ext_with_dot is the new extention to set $file = substr($file, -strlen(strrchr(basename($file), '.'))).$new_ext_with_dot;

« previous php.notes (#152403) next »