poll directory settings.
Posted: Thu Mar 11, 2004 11:00 am
Ok, I downloaded this free script somewhere and I am trying to get it running on my server, but not in my root directory but in a directory called /poll/
I need to put in the following code in my page to display the poll and afterwards the result
Now I tried editing the directories but get a blank screen. If anyone could tell me how to put the directory correct in php I am very glad. I was thinking about e.g.
but this doesnt work.
Thnx in advance
I need to put in the following code in my page to display the poll and afterwards the result
Code: Select all
<?php
include_once ("includes/miniPoll.class.php");
$test = new miniPoll;
$test->pollForm();
?>
<?php
include_once ("includes/miniPoll.class.php");
$test = new miniPoll;
if (isset($_GETї'poll']) && is_numeric($_GETї'pollid'])) {
$pollid = $_GETї'pollid'];
if (isset($_GETї'voteid']) && is_numeric($_GETї'voteid'])) {
$voteid = $_GETї'voteid'];
$test->processPoll($pollid, $voteid);
}
}
if (isset($_GETї'pollid'])) {
$pollid = $_GETї'pollid'];
$test->pollResults($pollid);
}
?>Code: Select all
include_once ("/poll/includes/miniPoll.class.php");Thnx in advance