Author |
Message |
16/10/2004 10:32:23
|
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
|
|
16/10/2004 11:15:20
|
Carbonize
Master
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 |
|
16/10/2004 14:06:26
|
Auron
Expert
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) |
|
16/10/2004 14:52:44
|
Carbonize
Master
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 |
|
16/10/2004 17:38:06
|
Auron
Expert
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) |
|
16/10/2004 17:56:45
|
Carbonize
Master
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 |
|
16/10/2004 18:28:03
|
Auron
Expert
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) |
|
16/10/2004 20:14:53
|
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
|
|
16/10/2004 20:37:07
|
Carbonize
Master
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 |
|
16/10/2004 21:24:40
|
Auron
Expert
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) |
|
16/10/2004 21:26:19
|
Carbonize
Master
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 |
|
16/10/2004 22:33:50
|
Auron
Expert
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) |
|
|