Return to Website | Quote Request | Contact Admin

help with dynamic poll

 
       CJ Webmaster Forums Forum Index -> Dynamic Poll
View previous topic :: View next topic  
Author Message
sfad



Joined: 21 Jul 2003
Posts: 3


Posted: Mon Jul 21, 2003 5:50 am    Post subject: help with dynamic poll

i downloaded dynamic poll
i get this error on the main page (with <? include .....) Notice: Undefined variable: Vote in c:\inetpub\wwwroot\poll\poll.php on line 9


my config is like this:

$directory = "http://formula1.dyndns.org/poll"; // no trailing slash
$imgurl = "http://formula1.dyndns.org/poll/bar.gif"; // root to bar.gif

$ipfile = "poll/ip.php"; // root to ip.php
$pollfile = "poll.txt"; // root to poll.txt

btw what is CHMOD and how do i set it to 777

and on admin. php i get the errors
Notice: Undefined variable: action in c:\inetpub\wwwroot\poll\admin.php on line 21

Notice: Undefined index: username in c:\inetpub\wwwroot\poll\admin.php on line 28

Notice: Undefined index: password in c:\inetpub\wwwroot\poll\admin.php on line 29


thanks for the help

Back to top
darkcarnival



Joined: 10 Jul 2003
Posts: 84
Location: Michigan

Posted: Mon Jul 21, 2003 7:23 pm    Post subject:

CHMOD is a way to give that file permission to do stuff and well heres the thing, your on a windows server, on windows you cant CHMOD.but i think i know the problem.$ipfile and $pollfile need to have the root of your server so it should look like this:

Code:

$ipfile = "c:\inetpub\wwwroot\poll\poll\ip.php";
$pollfile = "c:\inetpub\wwwroot\poll\poll.txt";


try it and i think it should work icon_smile.gif


_________________
metal fan? go to metalstation
http://metalstation1.com
Back to top
sfad



Joined: 21 Jul 2003
Posts: 3


Posted: Mon Jul 21, 2003 8:35 pm    Post subject:

that didn't help icon_cry.gif
but thanks
it is still the same way

and now im using the hit counter and i get these errors
Warning: fopen("hitcounter.dat", "r+") - Permission denied in c:\inetpub\wwwroot\count.php on line 6

Warning: flock(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 7

Warning: fgets(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 8

Warning: fseek(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 10

Warning: fputs(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 11

Warning: flock(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 12

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\count.php on line 13

Back to top
sfad



Joined: 21 Jul 2003
Posts: 3


Posted: Mon Jul 21, 2003 8:39 pm    Post subject:

btw my site is
http://formula1.dyndns.org/index.php
and the poll stuff is in
http://formula1.dyndns.org/poll/

Back to top
darkcarnival



Joined: 10 Jul 2003
Posts: 84
Location: Michigan

Posted: Mon Jul 21, 2003 9:01 pm    Post subject:

well then i suggest you look for another poll system cause windows cant CHMOD. cant think of what the problems could be then.

_________________
metal fan? go to metalstation
http://metalstation1.com
Back to top
dirtboy



Joined: 12 Oct 2003
Posts: 3


Posted: Mon Oct 13, 2003 1:25 am    Post subject:

The problem could be in the include statement
it says:

<? include "poll/poll.php"; ?>

But, I had to change mine to:


<? include "http://localhost/poll/poll.php"; ?>

Back to top
Archangel



Joined: 12 Nov 2003
Posts: 2


Posted: Wed Nov 12, 2003 1:52 pm    Post subject: CHMOD

You can use CuteFPT to CHMOD your files.
Back to top
Display posts from previous:   
       CJ Webmaster Forums Forum Index -> Dynamic Poll All times are GMT
Email this topic to a friend

Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.3

© CJ Website Design :: Return to Website