Chinaunix首页 | 论坛 | 博客
  • 博客访问: 950548
  • 博文数量: 102
  • 博客积分: 10033
  • 博客等级: 上将
  • 技术积分: 1385
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-20 15:26
文章分类

全部博文(102)

文章存档

2014年(3)

2013年(1)

2011年(1)

2010年(3)

2009年(7)

2008年(3)

2007年(26)

2006年(58)

我的朋友

分类:

2009-09-20 21:26:03

  • Create a directory for the poll to reside. This can be your root web directory if so desired.
  • Unzip the files included in the .zip file to the above directory.
  • CHMOD the addresses.xml and results.xml to 777 (in the /xml directory)
  • Open the results.xml file, and add your polling question, and an entry for each voting item.
  • Set the vote counts in the results.xml file to zero (or, whatever you'd like to start at).
  • Optional: Modify the poll.css file to fit your website's theme.
  • Access the poll at
  • That's it! Please note that there should be at least 1 address entry in the addresses.xml file (loopback of 127.0.0.1 is fine)

» »     Intermediate

A Simple PHP Polling/Voting System

By

Create an IP-logging PHP Polling or Voting System in PHP 5.0

阅读(5040) | 评论(29) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-10-10 10:12:40

PHP获取的时间比实际时间少8小时。 1、我们写PHP程序在获取时间时,人为加上8小时。例如:

chinaunix网友2009-10-09 18:00:03

http://web2seo.blogbus.com/logs/46941607.html

chinaunix网友2009-10-09 17:11:17

第一种:利用模板。目前PHP的模板可以说是很多了,有功能强大的smarty,还有简单易用的smarttemplate等。它们每一种模板,都有一个获取输出内容的函数。我们生成静态页面的方法,就是利用了这个函数。用这个方法的优点是,代码比较清晰,可读性好。 PHP代码举例: assign("title","Hello World!"); $content = $t->fetch("templates/index.htm"); //这里的 fetch() 就是获取输出内容的函数,现在$content变量里面,就是要显示的内容了 $fp = fopen("archives/2005/05/19/0001.html", "w"); fwrite($fp, $content); fclose($fp); ?> 第二种方法:利用ob系列的函数。这里用到的函数主要是 ob_start(), ob_end_flush(), ob_get_cont

chinaunix网友2009-10-07 15:05:38

这里的意思是 onclick 点击的时候 this.form 表示这个form action="" 就是设定提交的网址 submit() 表示提交表单 +---------------- 补充 -----------------------+

chinaunix网友2009-10-07 15:05:32

这里的意思是 onclick 点击的时候 this.form 表示这个form action="" 就是设定提交的网址 submit() 表示提交表单 +---------------- 补充 -----------------------+