Once you set your include folder path, create the .htaccess file - WARNING: do not, I repeat NOT, use any microsoft product to create that file, it's a plain text file, saved as
.htaccess
that's dot htaccess
use a real text editor, grab crimson editor to make it, it's free. Or if you already use one that's fine. Do not use frontpage, do not use wordpad, do not use notepad, and definitely do not use word
These will all cause you pain and create possible issues that will make you think you did something wrong when you didn't.
Use a real ftp client, filezilla is good and free, if you already have a real one use that.
all .htaccess files must have a linebreak after the last line of code, I'll use <br> to indicate a regular old <enter key> line break, like this:
php_value include_path ".:/usr/www/yourusername/includes"<br>
AddType application/x-httpd-php .htm .html<br>
If you forget the last break, you will generate a 500 internal server error.
Again, do not actually put a <br> in the code, use <enter> key, linebreak.
If you do all this, it will just work, as long as your webhoster supports basic htaccess stuff. If they don't, move to another hoster.
.htaccess files must be transfered by ftp using ascii text mode, not binary. If your ftp client is not set to automatically select binary/ascii mode based on extension, set it do so, then add .htm, .html, .htaccess, .inc, .php to the extension list to make sure you never transfer any of these file types in binary mode. Transferring any php or htaccess file in binary mode can cause strange and very hard to diagnose errors in the script execution.
|