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.
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 (Apache webservers only)
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 (in addition to the ones above, if you like):
AddHandler php-script .htm .html <FilesMatch "\.(html?)$"> php_value short_open_tag "Off" php_value auto_append_file "/the/path/that/leads/to/count.php" </FilesMatch>
automatic .htm(l) 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 (which works) 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 "count.php" needs to be a local absolute server path like the example above (in blue). 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 (which you cannot see in a browser). The file "count.php" 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 ".htm" or ".html" 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.