一个简单的计数器

  1.  
  2. /*  
  3. || 一个简单的计数器制作
  4. */  
  5. function get_hitcount($counter_file)  
  6. {  
  7. /* 将计数器归零  
  8. 这样如果计数器还未被使用,初始值将是1  
  9. 你当然也可以把初始值设成20000来骗人咯  
  10. */  
  11. $count=0;  
  12. // 如果存放计数器文件已经存在,读取其中的内容  
  13. if ( file_exists($counter_file) )  
  14. {  
  15. $fp=fopen($counter_file,"r");  
  16. // 我们只取了前20位,希望你的站点不要太受欢迎啊  
  17. $count=intvalfgets($fp,20));  
  18. // 由于函数fgets()返回字符串,我们可以通过加0的方法将其自动转换为整数  
  19. fclose($fp);  
  20. // 对文件操作完毕  
  21. }  
  22. // 增加一次计数值  
  23. $count ;  
  24. // 将新的计数值写入文件  
  25. $fp=fopen($counter_file,"w");  
  26. fputs($fp,$count);  
  27. fclose($fp);  
  28. # 返回计数值  
  29. return ($count);  
  30. }  
  31. ?> 
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!

波比源码 » 一个简单的计数器

200 评论

  1. purchase fildena without prescription order careprost methocarbamol for sale

  2. order suhagra for sale sildalis for sale estradiol over the counter

  3. order tadalafil 10mg sale cheap tadalafil order generic voltaren 100mg

  4. order provigil 200mg online 10mg cialis buy acetazolamide 250mg

  5. clonidine pill spiriva pill oral tiotropium bromide 9mcg

  6. purchase isosorbide buy imuran 25mg generic micardis 20mg

  7. order molnupiravir 200mg without prescription buy prevacid generic buy prevacid 30mg pill

  8. order sildenafil 50mg lisinopril brand order lisinopril without prescription

  9. colchicine 0.5mg cheap that roulette burton brunette

  10. buy tadalafil 10mg online cheap tadalafil 40mg cost order cipro 1000mg generic

  11. zocor order oral valtrex propecia 1mg over the counter

  12. order sildenafil 100mg pill cialis uk tadalafil 20mg without prescription

  13. order priligy 90mg sale motilium price domperidone 10mg price

  14. nortriptyline 25mg cheap paxil 10mg cost purchase paxil for sale

  15. buy fenofibrate 160mg generic sildenafil 50mg uk purchase sildenafil pill

  16. order cialis 10mg for sale free levitra where to buy ed pills online

  17. provigil buy online oral modafinil buy promethazine 25mg generic

  18. buy clomid online cheap atorvastatin cost buy prednisolone 40mg online

  19. dutasteride without prescription oral dutasteride buy xenical 60mg online cheap

  20. buy sildenafil 100mg sale genuine viagra cost cialis 10mg

  21. order sumatriptan pills dutasteride ca how to get dutasteride without a prescription

  22. is escitalopram the same as lexapro lexapro adhd can escitalopram expire

  23. isotretinoin over the counter buy amoxil paypal azithromycin 250mg sale

  24. order tetracycline 250mg pills sumycin sale baclofen 25mg pills

  25. what is azithromycin 500 mg azithromycin???? does azithromycin make you nauseous

  26. amoxicillin and metronidazole combination dosage for tooth infection amoxicillin over the counter how to get amoxicillin without seeing a doctor

  27. order sarafem pills sarafem 40mg us purchase femara generic

评论已关闭

Hi, 如果你对这款模板有疑问,可以跟我联系哦!

联系站长
赞助VIP 享更多特权,建议使用 QQ 登录
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡