phpVoter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
fwc
Forum Newbie
Posts: 23
Joined: Fri Jul 13, 2007 4:55 am

phpVoter

Post by fwc »

Hello all,
I am installing a polls script and I was just wondering if I could get some help. The installation file reads as follows:
(For the original file http://scripts.ringsworld.com/polls-and ... voter-0-6/)
Here is a short description to get you going when installing
phpVoter.

Requirements: PHP4, MySQL

1. Copy the files to your web directory.

2. Create a mysql database, either use a graphical tool like
phpMyAdmin or use the following at a shell prompt. Of course you
will have to have mysql root access.

> mysqladmin create databasename

3. Now you will have to grant access to a web user. Type "mysql" at
the shell prompt and enter the following lines:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER
ON votedatabase.*
TO user@localhost
IDENTIFIED BY 'password';

You will have to change votedatabase, user and password to
something else.

4. Create the tables in the database, again change votedatabase to
something more appropriate.

> mysql --user=user --password=password votedatabase < tables.sql

5. Edit config.inc.php to suit your needs.

6. Change mysql.inc.php to set the correct database permissions.

7. Move the sub directory "data" to somewhere outside the web root
and make it writeable by the web server. Put the path of this
directory into the variable $config['datadir'] in the config.inc.php

8. Change the username and password in data/basic_auth.inc.php

9. Change the variable $sitepath in includes/functions.inc.php to
the path where you have installed phpVoter.

That is all, you should now be able to go to the php-voter_admin.php
script and add a new poll.
  1. So I create a new database through phpmyadmin
  2. Change the mysql configuration to the right database settings
  3. Get confused by step 7
  4. Change the username and password as stated in step 8
  5. And change the sitepath to the folder where I uploaded phpvoter
and the resulting errors are given after step 9

Code: Select all

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/.shimi/BARGLE/phpvoter/includes/functions.inc.php on line 6
 
Warning: require_once(http://BARGLE/phpvoter/includes/config.inc.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/.shimi/BARGLE/phpvoter/includes/functions.inc.php on line 6
 
Fatal error: require_once() [function.require]: Failed opening required 'http://BARGLE/phpvoter/includes/config.inc.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.shimi/BARGLE/phpvoter/includes/functions.inc.php on line 6
Thank you very much for any help you can give and I hope it's not too complicated :?
PS I am using dreamhost
Post Reply