Author |
Message |
05/03/2002 10:12:39
|
Anonymous
|
I have renamed all the .php files to .php3 and chanched all the files associations and no problem.
Hi! I have installed the advanced poll 2.0 without problems, but I try to insert the poll on my page and I get this message where the poll should go: poll_process(1); ?>
why? For this I inserted :
<?php
// Important! You have to include it before your html code
include_once "/home3/www/web/www.mydomain.com/php/superpoll/poll_cookie.php3";
?>
<html>
<body>
<?php
include_once "/home3/www/web/www.mydomain.com/php/superpoll/booth.php3";
echo $php_poll->poll_process(1);
?>
</body>
</html>
but doesn't work. PLEASE HELP!!
|
|
05/03/2002 23:20:22
|
SPeedY_B
Newbie
Joined: 01/03/2002 16:16:38
Messages: 3
Location: UK
Offline
|
try the 1 in quotes
echo $php_poll->poll_process("1");
|
|
06/03/2002 21:44:50
|
Anonymous
|
Ohh,, it doesn't work!! please help!! I tryed to make a web only with this code:
<?php
// Important! You have to include it before your html code
include_once "/home3/www/web/www.mydomain.com/php/superpoll/poll_cookie.php3";
?><html>
<body>
<?php
include_once "/home3/www/web/www.mydomain.com/php/superpoll/booth.php3";
echo $php_poll->poll_process("3");
?>
</body>
</html>
But it doesn´t work, any idea?
|
|
07/03/2002 06:58:30
|
O.C.
Beginner
Joined: 04/03/2002 02:14:19
Messages: 10
Offline
|
For one thing, what is this php3? Why did you add a 3? It shouldn't be there.
|
|
07/03/2002 23:02:52
|
Anonymous
|
I had the same problem. The webserver obviously does not know he should parse your HTML-page for PHP-code and thus simply displays it!
Change your document type from .html to .php or put an .htacess file with "AddType x-mapp-php4 .php .html .htm" in the root of your server to tell the server to parse html-files.
Hope you get it - I'm not too familiar with PHP myself.
|
|
08/03/2002 23:17:21
|
Anonymous
|
I renamed the .html file to .php3 and .php4 but the result is the same.
I don't know how to do that about htacess of the preview topic, any help?
|
|
15/03/2002 01:31:08
|
Anonymous
|
I got the same problem. I spent hours trying to figure it out. Then I looked at the files that were included, one of them an shtml file. There I found out that we should be using the SSI_php version of it. When I copied and pasted that tag, it works fine.
If you are using shtml for your site, this could be your problem.
|
|
|