Jump to content

.htaccess what does this mean?


PC Nerd

Recommended Posts

hi guys.

 

ive got this in my .htaccess file:

php_flag session.auto_start Off
php_flag register_globals Off

 

im wondering what it means.  I was told it was causeing my Internal Server Error..... but i havent a clue how to fix it.

 

thanks

Link to comment
Share on other sites

Yes your host is right. php_flag or php_value is only available ifPHP is compiled as an Apache Module. What your hosts suggests is to use the ini_set function within your script to change PHP configuration rather than using an .htaccess file.

 

Have a read of the manual on ini_set for how to use it and what PHP settings you can change with it.

Link to comment
Share on other sites

Yes you have to add it at the beginning of every page. Or if your script has a main configuration file that always gets included you just add it to the beginning of that file.

 

Unfortunately no there is not any alternatives due to the way your host has PHP setup.

Link to comment
Share on other sites

I just downloaded the script of off sourceforge. I would say to add the following two lines at the begging of  htdocs/config.php

ini_set('session.auto_start', 'off');
ini_set('register_globals', 'off');

looking at the script config.php is the file that is always included and is the first file to be included for every page for V-Webmail.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.