Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php change file extension

$newExtension = 'txt';
$info = pathinfo($filename);
$filename = $info['dirname']."/".$info['filename'].'.'.$newExtension;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #change #file #extension
ADD COMMENT
Topic
Name
3+5 =