Chinaunix首页 | 论坛 | 博客
  • 博客访问: 935180
  • 博文数量: 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

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

chinaunix网友2009-10-13 23:29:50

http://x.discuz.net/viewthread-494234.html

chinaunix网友2009-10-13 21:42:58

因为要在本地测试网站,用xampp搭建了本地的服务器环境。但是因为总是要输入localhost/xxx啥总觉得每次输入的很麻烦。如果输入一个1.com就能解析到自己的子目录环境,这样输入起来也方便些。 第一步: 用记事本打开C:\WINDOWS\system32\drivers\etc\hosts文件, 在127.0.0.1 localhost下面我添加了一个 127.0.0.1 1.com,这样以后每次在浏览器里输入1.com,他就不再向网络DNS解析,而是直接解析到本地。所以事实上的1.com你也访问不了了,当然你也可以自己设成 sohu.com如果你愿意的话。 第二步:因为我xampp是装在D盘的:用记事本打开D:\xampp\apache\conf\httpd.conf文件,我找到Include conf/extra/httpd-vhosts.conf,确认前面没有加#. 第三步:D:\xampp\apache\conf\extra\httpd-vhosts.conf,在后面加上NameVirtualHost 127.0.0.1

chinaunix网友2009-10-11 22:03:38

function mkdirs($dir) { if(!is_dir($dir)) { if(!mkdirs(dirname($dir))){ return false; } if(!mkdir($dir,0777)){ return false; } } return true; } mkdirs('ddd/ff/div/css/layout');

chinaunix网友2009-10-10 17:42:47

phpMyAdmin 导入大型数据库文件大小限制配置… 1. 修改 php.ini 文件中下列3项的值: upload_max_filesize, memory_limit 和 post_max_size upload_max_filesize,上传文件大小 memory_limit 设置内存 post_max_size 提交数据的最大值 为你想改的大小值. 2. 在 phpMyAdmin 的配置文件中修改或加入这个设置: 这个文件一般是在phpMyAdmin目录下的config.inc.php文件 $cfg['ExecTimeLimit'] = 0; // maximum execution time in seconds (0 for no limit) 默认为300秒钟,改为0表示不受限制

chinaunix网友2009-10-10 17:21:41

在远程桌面中传输文件在进行远程桌面操作时,有时需要在远程服务器与本地计算机传输文件,这是很麻烦的事。其实在远程桌面程序中内置了映射磁盘的功能,通过该功能便可以实现远程登录服务器时,自动将本地计算机的磁盘映射到远程服务器上,让传送文件变得更加简单快捷。在“远程桌面连接”程序中展开“选项”,选择“本地资源”标签,勾选“磁盘驱动器”。连接到远程登录到服务器上后,打开服务器的“我的电脑”,就会发现本地计算机的磁盘以及软驱、光驱都映射到了服务器上,这样传送文件便可像操作本地硬盘一样方便了。