Author |
Message |
26/03/2002 16:03:43
|
Anonymous
|
hi everybody,
I have some problems when I try to execute this script in html pages.
If I execute in .php file works fine but when I execute in an .html page return me this:
poll_process(1); ?>
I unclude this source in my web:
<?php require "votos/booth.php"; ?>
</head>
<body>
<?php
echo $php_poll->poll_process(1);
?>
how I execute this poll in a html page?
thanks
|
|
27/03/2002 07:02:04
|
Anonymous
|
I believe you can only execute it with .php pages. You can't use .html extension, rename it with .php extension.
|
|
05/04/2002 02:27:43
|
Anonymous
|
I had the same problem. I guess, you are using html templates for you php file. So these functions are just printed to html, not executed. You can't use php scripts inside you templates. Move it to php.
|
|
08/04/2002 10:59:05
|
Anonymous
|
Hey!
Don't listen to them. They are all jerks...
You CAN! use php scripts in your .htm or .html files!
Do this:
1. Make a file .htaccess within the root with your .htm/.html file.
2. Put this line into the .htaccess file: AddType application/x-httpd-php .html .htm
THAT'S ALL!
|
|
|