. htaccess adinda bir dosya yaratip oradaki satiri eklediginde otomatik olarak html dosyalarini php olarak calistiriyor, dibine de count dosyasini ekliyor.

http://bbclone.de php'den çakmadığım için soruyorum, sayfalarım html. host php destekliyor. bu sayacın nasıl çalıştığını bilmiyorum.html sayfalarıyla çalışabilirmi? eğer çalışmıyorsa html sayfalarını php'ye çevirmem zormu? edit: html sayfalarada eklenebildiğini öğrendim ama kurulumunu hala çözemedim. Automatically Adding the Activation Code To Every HTML Page BBClone is a PHP application, and your server needs to parse the activation code snippet as PHP code. Usually it knows to look through a file for PHP code because a file has a. php extension as part of the filename. But on an Apache webserver, you can tell the server to look through.htm and.html files for PHP code as well, with an extra command in. htaccess. First create the count. php file as described above. Then add the following lines to your. htaccess : AddHandler php-script.htm.html &lt;FilesMatch &quot;\. $&quot;&gt; php_value short_open_tag &quot;Off&quot; php_value auto_append_file &quot;/the/path/that/leads/to/count. php&quot; &lt;/FilesMatch&gt; automatic.htm counting The AddHandler line in this code snippet tells your server to parse htm and html files for PHP code, before sending the pages out. (The previously suggested command AddType application/x-httpd-php.htm.html may be ill advised; more info about this is in the Forum.) The next three lines tell the server to add the activation code contained within count. php to every.html or.htm page. The path to &quot;count. php&quot; needs to be a local absolute server path like the example above . Remember, an local absolute path is NOT the same as the path you would point your browser to, to see a page. It is the directory structure on the server itself . The file &quot;count. php&quot; can be situated anywhere on your webserver, as long as the absolute path points to the correct location. (NB. make the first line AddHandler php5-script.htm.html if you're running php5.) Now the following will happen: Each time someone calls one of the &quot;.htm&quot; or &quot;.html&quot; pages the code snippet with the counter code will be automatically appended. BBClone will automatically create a page title derived from the file's path which will be used in the page stats.