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 
Advanced Poll 2.03 on webpage  XML
Forum Index » Support Forum
Author Message
Anonymous



I have installed and activated Data Base Version of Advance Poll 2.03. I am not able to embed the poll on my homepage.

I need to put my poll in my index.html file
i.e. http://www.zmustudents.com/index.html

I've followed all the procedures and steps but the poll doesn't work on a webpage.


<?php
// Important! You have to include it before your html code
include_once "C:/W3Sites/zmustudents/www/poll/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "C:/W3Sites/zmustudents/www/poll/booth.php";
echo $php_poll->poll_process(4);
?>


I get error message about poll_process(4);
what should i do on the particular html file to rectify the error.

regards,

fahim
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Can you please post the complete error message.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Change page extension to *.php

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Thats what I thought at first but they say they are getting an error message where if the page extension was other than .php it would just show the commands. Probably is their problem though just to make me look stupid

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

If it was anything else but *.php you would get the poll_process(4);
bit and not a lot else. It has to be *.php.

NB - PHP code requires a file with an extension of *.php!!!

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Auron wrote: It has to be *.php.

NB - PHP code requires a file with an extension of *.php!!!

Auron


Actually .shtml would work as well :p well depending on server setup.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Well, that's if your doing it as an Server Side Include (SSI).

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Anonymous



so your saying that i should turn my homepage file i.e. index.html to index.php
will it work?
my hosting server does support php but my concern is will the visitor able to view my php extension homepage file when they'll click www.zmustudents.com
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

when a server recieves a request that does not specify a particular file it will send them the index.* file if it exists. My entire site is made up of .php pages.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

ZMUStudents.com wrote:so your saying that i should turn my homepage file i.e. index.html to index.php
will it work?
my hosting server does support php but my concern is will the visitor able to view my php extension homepage file when they'll click www.zmustudents.com


Your server does NOT support PHP?!?!?
This is a Poll written in PHP!

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

No they say their server DOES support PHP.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Carbonize wrote:No they say their server DOES support PHP.


Just re-read that it does, my bad ; ) lol

.... *_*

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum