Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > İnternet Programlama ve Kodlama > PHP

PHP PHP & PHP Hızlandırıcılar

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   iTrader 
Alt 2006-06-07, 18:29
SpongeBob - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Apr 2005
Nerden: İzmit
Mesajlar: 1.110
Tecrübe Puanı: 4
iTrader: %0/0
SpongeBob will become famous soon enough
Question bu tracker'ı siteme nasıl entegre edebilirim?

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.

Alıntı:
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.

Konu SpongeBob tarafından (2006-06-07 Saat 19:54 ) değiştirilmiştir..
Alıntı ile Cevapla

  #2 (permalink)   iTrader 
Alt 2006-06-07, 22:14
Angelo - ait Kullanıcı Resmi (Avatar)
Platinum Member
 
Üyelik tarihi: Dec 2004
Nerden: Phoenix,AZ
Mesajlar: 4.345
Tecrübe Puanı: 8
iTrader: %100/4
Angelo is just really niceAngelo is just really niceAngelo is just really niceAngelo is just really nice
Standart

.htaccess adinda bir dosya yaratip oradaki satiri eklediginde otomatik olarak html dosyalarini php olarak calistiriyor, dibine de count dosyasini ekliyor.
__________________
peace love union respect
Alıntı ile Cevapla

Cevapla

Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Bu script nedir nasıl temin edebilirim :( EFSANE_CLUB PHP 8 2006-04-09 00:59
siteme entegre etmek üzere, sözlük, oyun vs vs vs aliozen Webmaster Genel Konular 1 2005-11-28 00:18
SANAL pos nasıl entegre edilir? cengizzz PHP 3 2005-09-24 09:15
Pop Up Acarken Bu Ozelligi Nasıl Disabled Edebilirim? TGP Javascript Ajax ve Frameworkler 5 2005-07-21 02:37


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 17:37 .


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

Firefox