Author |
Message |
19/07/2006 15:26:31
|
katie_lostsoul
Beginner
Joined: 06/07/2006 22:36:07
Messages: 6
Offline
|
I used Fantastico to install the poll. I created a new one using the admin page and it said to include a bit of php to embed the poll onto your page. Problem is, when I do that, it only shows the echo of the poll...not the poll itself.
Anyone know why it's not working? Thanks
|
|
19/07/2006 16:58:01
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
The page you want to display the poll on has to use the .php extension and not .htm nor .html.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
19/07/2006 17:01:02
|
katie_lostsoul
Beginner
Joined: 06/07/2006 22:36:07
Messages: 6
Offline
|
After posting I did some searching around on the forums and found that you can have it on a html or htm page if you mess around with the .htaccess file.
Now if I add the code to that file, will it make my html page into a php page? What exactly is that code doing?
AddType application/x-httpd-php .php .html
Thanks
|
|
19/07/2006 17:05:39
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
That line tells the server to send .html files to the PHP Processor the same as PHP files.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
19/07/2006 17:07:12
|
katie_lostsoul
Beginner
Joined: 06/07/2006 22:36:07
Messages: 6
Offline
|
But it doesn't actually rename your html files to php files? Just tells them to process it like a php file?
|
|
19/07/2006 17:08:26
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
no. That would break your links.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
19/07/2006 17:13:00
|
katie_lostsoul
Beginner
Joined: 06/07/2006 22:36:07
Messages: 6
Offline
|
So can I add that line of code anywhere in the file? I see I've got a bunch of code already in it. Is it picky where it has to be?
|
|
|