<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

More Dew-Code Stuff


Many people seem to the think Dew-Code.com is run by a group of people, or some big corporation. Well, it's flattering if you have that impression, but the truth is, its just one person. While I'd love nothing more than to continue giving away my scripts, my time and experience, I do have the same needs as everyone else. If you've found Dew-Code.com , or any of the scripts found there to be helpful, please consider making a contribution.

For the year 2009, as of 12/16/09, A total of $50 USD has been contributed, or roughly $4.17 per month, for the year. While that is of course appreciated, unless more contributions are received, I will have no choice but to make future scripts available for purchase only.

Regards,
Dewed
Dew-Code.com

Script causes internal server error 500 or 404 E-mail

There is a .htaccess file needed in the same directory as the directory file. The .htaccess file is included, but some FTP programs/operating systems have issues with such filenames. The included text file, dothtaccess.txt covers the topic as well.

The contents of the .htaccess file should look like this


<Files directory>
ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
#SetHandler application/x-httpd-php5
#ForceType x-httpd-php
</Files>



Depending on your version of Apache you may need to use a different syntax by toggling the commented lines in the .htacess file. (note you likely wont see the 3 newer variations in your .htacess file)

If you download/upload the file in order to edit it, be sure it is uploaded in ASCII mode.

If you have access to it, the directives within the .htaccess file can be put in your apache config file, normally /etc/httpd.conf then the .htacess file is not needed.

An httpd.conf entry might look like this...
<VirtualHost>
ServerName www.mysite.com
DocumentRoot /var/www/html/username
<Directory /var/www/html/username>
Allow from all
AllowOverride All
Order allow,deny
</Directory>
<Files directory>
ForceType application/x-httpd-php
</Files>
</VirtualHost>

 
Tag it:
Delicious, Digg, MyYahoo, Technorati, Furl and 50 more!
< Prev   Next >

Freelance Jobs

See more freelance oppurtunities



Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008