Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 21
Braincode mempunyai hidup yang Normal
Default [ASK] code php

klo kode ini di mana yh agan semua letak kesalahan nya, ato ada yg kurang langsung di kasi tau ja agan semua



function hitcounter_widget($args) {

$filename= "counter.txt" ;



if (file_exists($filename)) {

$fd = fopen ($filename , "r") or die ("Gak bisa baca $filename");

$fstring = fread ($fd , filesize ($filename));

fclose($fd);

} else {

$fstring = '1';

}



if ($_SESSION[hitCounter]=='') {

$fd = fopen ($filename , "w") or die ("Gak bisa nambah $filename") ;

$fstring++ ;

$fout= fwrite ($fd , $fstring ) ;

fclose($fd) ;

$_SESSION[hitCounter]='ON';

}



extract($args);



echo $before_widget;

echo $before_title;

echo "Pengunjung";

echo $after_title;

echo "$fstring
Sejak Juni 2009";

echo $after_widget;

}



function init_hitcounter(){

register_sidebar_widget(__('Hit Counter'), 'hitcounter_widget');

}



add_action("plugins_loaded", "init_hitcounter");



?>




soal nya waktu di jalan kan ter jadi hal seperti ini



warning online 18 parameter leght must be greater then 0

</div>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
JUAL Hostgator Discount Code, Promo Code, Coupon Codes, $0.01 for Unlimited Web Hosting SumpitBesi Gratisan 0 5th November 2012 02:56 PM
JUAL (WTB)Yang Jual Source Code Visual code untuk Face recognition MASUK!! sukalaptop Software Original & Open Source 0 26th May 2012 09:57 AM
JUAL T'code paket 3 source code php lengkap masuk gan liat previewnya dulu pentium87 Software Original & Open Source 0 26th May 2012 09:45 AM

 


All times are GMT +7. The time now is 08:43 PM.