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 
Installed with Fantastico, but PHP not working  XML
Forum Index » Support Forum
Author Message
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
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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?
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum