将PHP行添加到每个包含文件的开头

I want to automatically add this line to the beginning of every file that is included and form part of the new file

I already have htaccess and have tried adding php_value auto_prepend_file AddCount.php ...

RewriteEngine on
RewriteBase /
RewriteRule ^(.*) index.php
php_value auto_prepend_file AddCount.php

which i have made up from similar posts, but get INTERNAL SERVER ERROR

i have seen its possible to add a file to each page load with htaccess

so e.g. file ...

<div><?=$NewCount;?></div>

becomes

<? $this=incCount($Count); ?>
<div><?=$this;?></div>

Sorry first question, apologies if all wrong, could not find answer