Author |
Message |
|
Hi marmalade kat,
First things first. Since you use .html as extension in your .htaccess ( AddType application/x-httpd-php .php .html )
make sure you save your file in .html and not .htm
Secondly, your path must be correct! Look at poll/poll_cookie.php . That is only a sample. Your path depends on where you install the poll .. just get the code from the poll's panel.
This is how your testpage.html source should look like
--------------------------------------------------
<?php
// Important! You have to include it before your html code
include_once "poll/poll_cookie.php";
?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Mystuff">
<meta name="GENERATOR" content="Mozilla/4.78 [en]C-STAR032398 (Win98; U) [Netscape]">
<title>testpage_1</title>
</head>
<body>
post stuff here
<?php
include_once "poll/booth.php";
echo $php_poll->poll_process(1);
?>
</body>
</html>
------------------------------------------------
Goodluck!
iskandar ________ Jaguar Mark 1 picture
|
|
|
The example Page has no more poll
This is to inform everybody that the sample page on the site Oohoi.com no longer has a poll on it. The site has been sold and I decide to take off the poll.
Dont worry, the instruction still works! ________ Ferrari 166 Inter history
|
|
|
Hi aj,
I think they let you do it but it's just that Windows does not understand file that starts with a dot like .htaccess file.
I found a good link that answers your question and offer a way to get around the problem. It's a Q&A session of a forum
http://www.ozoneasylum.com/21005
Hope that helps, mate! ________ medical marijuana patient
|
|
|
karine, ukkpower,
why not try 301 redirect as I described here http://proxy2.de/forum/viewtopic.php?t=4736
Scroll to the last post there
I hope that helps ________ Chrysler Cordoba history
|
|
|
I don't know what went wrong here but you mentioned it worked in .shtml and .php ( from your other posts, i think ).
So the best way is to rename your file to .php or .shtml . Then do a 301 redirect. What this does is to let the search engine spiders know that you have changed the name. Any links pointing to your old link will automagically be redirected to the newly renamed file.
This is the way.
Let say the name of your old file is does-not-work.html and you renamed it to now-it-work.php .
What you need to do is to add this line to your .htaccess file
redirect 301 /old/does-not-work.html http://www.you.com/old/now-it-work.php
( assuming that your old file is in the old folder)
That's all. Hope it helps
More about 301 redirect here http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm ________ vapor tower vaporizer
|
|
|
I apologise for not replying you guys' messages. After i had put up the instruction i had wondered around this forum for a few weeks to see if anyone needs help.
After that i have been away until today. Again, i apologise for not responding
iskandar ________ BMW X
|
|
|