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 
command ?php does not work, but !--#include does. Why?  XML
Forum Index » Support Forum
Author Message
DrJOnes666
Newbie

Joined: 15/08/2002 02:33:29
Messages: 2
Offline

Hi.

When I add the command <!--#include virtual="/poll/poll_ssi.php?poll_id=4" --> , the poll works.
But when I try to customize it such as this:
<?php
include_once "/www/mperreault/latexlover/poll/booth.php";
echo $php_poll->poll_process(4);
$php_poll->set_template_set("plain");
?>

it doesn't show up on the html page. All I get is the following text being echoed instead of the poll: poll_process(4); $php_poll->set_template_set("plain"); ?>

Why?
This is unfortunate beause I cannot seem to be able to customize the poll!

See http://www.latexlover.net/latexlover/chatroom/test.html . The first poll shows up fine. bellow, the ?php command echoes a text command.

DrJOnes666
DrJOnes666
Newbie

Joined: 15/08/2002 02:33:29
Messages: 2
Offline

I'v efound the answer to my question.
It seems that in order to work, the file extension must be set to .php and not .html or .shtml .


I sure wish there was a DETAILED Manual somewhere on the site.

DrJOnes666
dunnma
Beginner

Joined: 13/08/2002 23:09:49
Messages: 10
Offline

For future reference ANYTIME you are using PHP in your page, you MUST name that page .php


DrJOnes666 wrote:
I'v efound the answer to my question.
It seems that in order to work, the file extension must be set to .php and not .html or .shtml .


I sure wish there was a DETAILED Manual somewhere on the site.

DrJOnes666
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum