If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Anonymous
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Author Message
I get this error message only when I add the php code to the top of the page:

Warning: main(./poll_cookie.php): failed to open stream: No such file or directory in /nfs/cust/4/08/94/******/web/poll.php on line 3

Warning: main(): Failed opening './poll_cookie.php' for inclusion (include_path='.:/usr/local/php/include') in /nfs/cust/4/08/94/******/web/poll.php on line 3

****** means not for your eyes...

Everything works well when I remove:

<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

...but I'm sure I'm not getting the cookie protection.

How should it be written? It states for inclusioninclude_path='.:/usr/local/php/include')

Any help?

Thanks
No Dice - I uploaded a clean set of files from the local "admin" folder to the remote "admin" folder....any other ideas? Everythign else works just fine.
I've completely setup my guestbook - everything looks right, works right, etc. However when I login to the admin and click on "Easy Admin" or "Private Messages" the screens are completely white. There are messages on the live board - it's just that the Admin wont' show them.

Help!?
Hello,
On an installation of AG 2.2 it is now throwing up this error:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/XXXXX/public_html/Guestbook/lib/gb.class.php(101) : eval()'d code on line 3


The domain has been XXX'd out. Nothing has been touched on the script and it just started throwing up this error about two weeks ago. Any ideas would be greatly appreciated.

Bert
I insertet this code :
<?php
include_once "/home/virtual/sitio20329/www/encuesta/booth.php";
echo $php_poll->poll_process(4);
?>
on my webpage, and RENAMED TO .PHP FILE, instead all that i get is
poll_process(4);
¿Whats wrong?
Thanks very much Carbonize
I'm just the project leader so I don't know who exactly will use the poll.
But I can fill in the username and password in the template, that is a good idea, thanks!
I know this but the poll will be placed on an intranet for a school project and multiple users need to have access at every time. We take this poll as an example for webdesign classes.

I guess it should be possible, but how?
Hi,

I am a newbie in this field, and need help from experts like you please.

I installed AdvancedGuestBook on my site, and changed the language to arabic. I'd like to change the direction of all the pages to be from right to left. I changed the direction on "form.php", but how can I do that with "index.php" for example ???

Thaks a lot
Carbonize wrote:Ok the SQL password shuld be in plaintext in your config file. Looking at the error all I can say is check your information is correct.

Yo usay you upgraded from 2.2 to 2.3.1. Could you do me a favour and download www.carbonize.co.uk/install.zip, upload the install.php from the zip to your guestbook folder and then run it (once you sort out your database access problem). It should upgrade your guestbook database from 2.2 to 2.3.1 but it will give you errors. I would be grateful if you could send me the entire error message so I can fix it. Your guestbook will work fine once done (apart from your SQL problem but until thats fixed you can't use the install.php anyways)

So as I said check the information in the config file. You may have just typo'd a letter somewhere.


Carbonize, do you still need the error message? Have a 2.2 guestbook that has not yet been upgraded.
I have read the posts but it's a bit too confusing for me.
Can someone tell me step by step what I have to add where if I want the poll to allow users to only vote once?

I tried it with some of the code changes in my testpoll.php (where the poll is embedded) but it didn't work.


Gwion
I installed the poll through CPanel (Fantastico) and the admin area works OK. I can create a poll etc but when I go to my poll site, I get this:

Demo 1 Demo 2 Demo 3 Demo 4 Demo 5 Demo 6

--------------------------------------------------------------------------------

<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

--------------------------------------------------------------------------------
<?php

/* path */
$poll_path = "/home/tsesyeit/public_html/poll";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();

/* the first poll */
echo $php_poll->poll_process(1);


/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);


/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}

?>
Poll ID 1 does not exist. Poll ID 2 does not exist.

Any ideas what is wrong??
Ok, Problem gelöst mit Hilfe von Fantastico.
Also, Frage retour. Sorry.
Tutorials wären trotzdem gut.

Gwion
Hi,

Hab auch Probleme. Die readme.txt files sind ein Witz ..
Ok, also .. ich hab mal das gesamte .zip entpackt und alles nach Vorschrift hochgeladen, (auch das readfile Verzeichnis). cmod gesetzt, wie im readme.txt
Dann, db angelegt, user hinzugefügt.
Installation aufgerufen und installiert.
Jetzt wollte ich die admin.php aufrufen (..poll/db/admin.php)
und bekomme die berüchtigte Fehlermeldung

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /home/userid/public_html/poll/db/include/class_mysql.php on line 32
Connection Error

MySQL Error : Connection Error
Error Number: 1045 Access denied for user: 'root@localhost' (Using password: NO)
Date : Sun, October 17, 2004 10:28:02
PHP Version : 4.3.8
mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634a mod_ssl/2.8.19 OpenSSL/0.9.7a
Script Name : /poll/db/admin/index.php

userid ist natürlich mein user-name für die DB.
Was nun?

Gibt es nicht irgendwo ein ordentliches Tutorial (kann auch Englisch sein)?

Gwion
In my case, both the IP lock-out time and cookie_expire are the same. ie 96 hours.

After I a user votes, he/she is then being prevented from voting again, BUT ONLY for 24 hours, and NOT 96 hours as per my settings. That is my concern.

==> And this is very bad because it makes people think and say they can vote multiple times, and then discredit the Poll system.

Also, is it necessary to have the "cookie" features ? Because users can always configure their browsers for not to accept cookies and then vote multiple times. Am I wrong ?

Regards,
SdCA
 
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Go to:   
Based on the open source JForum