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 
Messages posted by: Lukeb1979
Forum Index » Profile for Lukeb1979 » Messages posted by Lukeb1979
Author Message
Ok I have been reading these posts for ages. They are very helful. But one thing, many are saying that you have to resave or create a new web page in the .php file extention. Thats the easiest. But just as easy is including a small line in your .htaccess file located in your root folder on your server.

Here's how to get this task done! DO NOT JUMP THE GUN! READ ENTIRE POST BEFORE YOU CONTINUE. Its VERY EASY to do this.

Take a look in your root folder on your remote server. It could be /www/ or even be located on your computer where files are stored locally.
Locate the .htaccess file. Open it. I prefer "WordPad" instead of "Notepad". Either will do though. WordPad is just more organized. On NotePad, simply just ad it right to the end of everything. If you do not have either one of those. just use a simple editor like one of those. Your computer may not open it with anything or try to search the internet for the corect program. Do not search, select a program from your computer to open it with.

Open the .htaccess file. At the VERY END you will be putting this exactly! DO NOT COPY AND PASTE! Type it in by hand!

For pages that end in .html you want to put the survey on:
<FILES yourpage.html>
AddType application/x-httpd-php .html
</FILES>

yourpage.html = NOT THE ENTIRE WEB SITE GUYS! Just the page name. EG: index.html, testpage.html, faq.html

SAVE THAT FILE! Upload it back to the sever (remote).

Now if you page ends in .htm
<FILES yourpage.htm>
AddType application/x-httpd-php .html
</FILES>

OR if that doesn't work with the .htm extention use this one:
<FILES yourpage.htm>
AddType application/x-httd-php .htm
</FILES>

This coding you put into the .htaccess file will allow you to run the php on that page only. Enter the above codes for each .html or .htm page that you want to include a survey on.

Ok Now that you have edited your .htaccess extention file and saved Everything, you MIGHT have one more thing to do.

You may have refreshed and the page is blank, or missing, or theres a "one-liner" on the top.

What about my XML index.html page, you ask?

I got a solution for you! Its Just as easy! Under the section where you Put the code on your index.html(.htm) page
<?php
// Important! You have to include it before your html code
include_once "/home/djsoundp/public_html/poll/poll_cookie.php";
?>
JUST UNDER THAT TYPE THIS EXACTLY:
<?php echo '<?xml version="1.0" encoding="IUTF-8"?>'; ?>

Save the page. or "Put" the page, and it should all show up.

If not, carefully review if you typed all the codes I put here corectly.

I use dreamweaver CS3. This WILL work for 97% of you. The other 3%..........Shouldn't be creating web sites! Godd Luck, Have fun! "May all your votes count!"
 
Forum Index » Profile for Lukeb1979 » Messages posted by Lukeb1979
Go to:   
Based on the open source JForum