jpeg - Search and replace str inside jpg file data by php -
i want way search , replace strings inside jpg
or ttf
files php , resave them!
ttf : change font family name or something
<?php $path = "/home/httpd/html/index.php"; $file = basename($path); // $file set "index.php" $file = basename($path, ".php"); // $file set "index"
for e.g let's want replace file name having index ttf
echo str_replace("index","ttf",$file);
you can find , replace according needs.
Comments
Post a Comment