Author |
Message |
28/07/2003 22:51:13
|
Anonymous
|
Hi all!
I cant reall figure out why there are two directories for that one poll
one is called "DB" ( which probably means DATENBANK ) and the other one is called "TEXTFILE" ...
why are there 2 directories, and how shall i upload them both on my server? i uploaded the DB directory using ASCII mode on my server, and thought i could give the CHMOD's now, but i just realized that there is no POLLDATA where i could give the 777 write permission.
So actually, i am just a bit confused how i should upload both directories, without making links wrong or so...
i created a Directory on my webserver, called "POLL" in which i uploaded all the content so far.
shall i upload both directories in that "POLL" directory? probably yes.... still i would be very greatful if any one could give me some advice about possible problems and a short instruction maybe ...
thanks a lot dudes^^
|
|
29/07/2003 02:40:40
|
Anonymous
|
Hi
if you want to use database (db) to store your results then upload content of db folder, and if you want o use textfile where your results will be stored then upload textfile folder and for both types go to install.php and follow instructions!
Hope it helps
Tom
|
|
29/07/2003 12:55:13
|
Anonymous
|
yes it helps
i justed asked a colleague, and he told me the same^^
i didnt know there was any difference...
i thought polls always use the database...
i think i will use the DB poll
then i got no CHMODs to distribute, and its probably a bit faster
whatever...
if i get problems i ask here again ^^
|
|
29/07/2003 17:15:21
|
Anonymous
|
i uploaded the "DB" directory after i entered all my MySQL data and passwords..
i successfully installed the Script, using the "install.php"
i then logged in the Admin area
"http://www.mypage/poll/admin" after i chose my Password and username, and after having deleted the "install.php"
Then i created a new poll and fit the Design (general settings) to the Design of my Website.
When i click on "TEMPLATES" in the admin area i am able to have a preview of my Poll.
NOW THE THING IS!
how the hell do i include that script in my HTML Page?
i thought by using the following Script in the Table where i want it to appear later on.
CODE:
<?php
include_once "/is/htdocs/48410/www.ue-lux.de/poll/booth.php";
echo $php_poll->poll_process(x); // x = Poll ID
?>
Do i need to add another command, in order to include that nice Poll into my HTML website?
Can some1 pls be so nice and help me?
I just need some advice or instruction. Perhaps the Codes and their Destination ( <head> tag or within that table or so... )
THX A LOT!!!!
|
|
30/07/2003 16:06:11
|
Anonymous
|
i adjusted the whole a bit...
it was wrong... i had to enter the POLL ID...
but still it doesnt work at all..
any1 pls help me
Above the HTML Tag i wrote this:
<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
In the prepared Table of my HTML Site i wrote this:
<?php
include_once "/is/htdocs/48410/www.ue-lux.de/poll/booth.php";
echo $php_poll->poll_process(4); // x = Poll ID
?>
Is anybody there who can HELP ME!??!?!!?!
|
|
31/07/2003 16:26:24
|
Anonymous
|
does it work if i rename my INDEX.HTML
into INDEX.PHP ????
pls any1 help me *sniff*
|
|
02/08/2003 16:11:33
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Well, yes! of course it does! How do you expect the server to parse the PHP code if it doesn't even though the page its got has PHP in it, hence the extension, so that it does know its got PHP code in it. With the download of Advanced Poll 2.0.2 PHP version there are two ways for the polls and stats to be recorded in flat-file text based files or throught tables in a MySQL database. I have heard the textfile version is slightly faster, but the MySQL one may be easier to add extras to it, though I'm not sure of that.
Auron
|
|
|