.htaccess causing 500 internal server error

Status
Not open for further replies.

marc2003

New Member
Messages
3
Reaction score
0
Points
0
hi there, i'm having a problem with my .htaccess file. this is what it contains......

php_flag magic_quotes_gpc off
php_value include_path ".:/home/marc2003/includes"

is it because i'm on the basic php package? would intermediate fix it or am i not allowed to use .htaccess in this way? :)
 

mattura

Member
Messages
570
Reaction score
2
Points
18
do you need magic quotes off?
alternatively, inside your php you can have something like:
if (get_magic_quotes_gpc()==1) {
//Magic quotes on (dont add slashes)
} else {
//Magic quotes off (might want addslashes etc)
}
does that code in .htaccess even work?
You could probably remove both lines and it would work, what's in the includes that you need?
 

marc2003

New Member
Messages
3
Reaction score
0
Points
0
i'm sorted now. this thread can be closed. i can use this in my php for the includes....

ini_set('include_path', '.:/home/marc2003/includes');

as for magic_quotes, because i'm using mysql_real_escape_string, i just need to use stripslahes(). :)

oh and yes those commands do work in .htaccess if they're allowed. i wouldn't have asked about it otherwise. the reason why i prefer using .htaccess is that you can just forget about it. but now i have to remember to edit all my files. :biggrin:
 
Status
Not open for further replies.
Top