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 
Putting code into site.  XML
Forum Index » Support Forum
Author Message
Anonymous



I put <?php
include_once "/hsphere/local/home/powerhou/dannyd.net/poll/booth.php";
echo $php_poll->poll_process(x); // x = Poll ID
?>


into my html code as said.

All that comes up is poll_process(5); ?>
Auron
Expert
[Avatar]

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

Change page extension to .php

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



Auron wrote:Change page extension to .php


I wanted to ask about this. What if I wanted a poll on my main page? Does that mean that this page would have to be a php page?
neicul
Beginner

Joined: 29/03/2005 00:06:14
Messages: 12
Offline

if you are refering to your index file, you can rename it to index.php and it will work fine.
[WWW]
Auron
Expert
[Avatar]

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

You can have a page with no php in it at all and in will work fine, so long as there's html in it of course!

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]
bugojanac
Newbie

Joined: 26/10/2006 10:39:22
Messages: 1
Offline

Auron wrote:Change page extension to .php


My page is .php already.

I use Typo3, and it has a insert php script content element, and i inset it, and i still get the above.

it works ok on its own, but typo3 doesn't let it.

someone pls help.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum