I need help adding the word "hit" at the start or end of filename. I am able to write only numbers with the following code.
$File = "/home/abb/public_html/wp-content/plugins/numbers.txt";
$handle = fopen($File, 'r+');
$data = fread($handle, 512);
$count = $data + 1;
fseek($handle, 0);
fwrite($handle, $count);
fclose($handle);
$data.=substr($firstpart,-5);
$que = array(' ');
$cod = array('');
$data = str_replace ($que ,$cod,$data);
Can anyone help me modify the code where I can write the word "Hit" at start plz?