To all you newbies or users who may be thinking about moving your Dew-NewPHPLinks script files, I just wanted to give you all an important reminder about the essential .htaccess file.
The below can be found in the
FAQ section of this website.
If you are getting an Error message when trying to display your "directory" file (which as you may or may not know, the directory file is the guts to this Dew-NewPHPLinks script).
Some web server or hosts or whatever do not allow you to simply run a file without an extention (your host may not allow you to run a file [like "directory"] without a *.php or without a *.html or *htm).
Because of this you need to tell your webserver to use "directory" as a PHP file...
Here is an example...my host sucks! I asked them to transfer all my website files for fattymattybrewing.com to a new webserver. I have had problems with my host's webserver being to overloaded with traffic or some crap. Anyway, I submitted a support ticket with my host and requested a transfer to a new webserver (one that was not slow from to much traffic or whatever there excuse is this week). They moved all my website files which included Wordpress, Coppermine Photo Gallery, Dew-NewPHPLinks, PHP Dictionary, Brewblogger, etc all which use PHP and MySQL. After the transfer, all the scripts moved worked except Dew-NewPHPLinks...
Low and behold I had to reference the the
FAQ section of this website and add some code to my .htaccess file as I received a 400 error when trying to load the "directory" file on my website through a browser...my Appache/Linux server runs PHP5 - THANKS DEWED- and this was added to the .htaccess file to make directory run correctly:
| Code: |
#the below lines were added to make directory work per http://www.dew-code.com/content/view/14/25/
#added on 091708
<Files directory>
#ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
SetHandler application/x-httpd-php5
#ForceType x-httpd-php
</Files>
AddHandler application/x-httpd-php .htm .html
|
The above file has some notes in the first 2 lines above the <files directory> bracket.
notice all but the php5 lines are commented out and the addhandler line is not commented out too.