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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -