PC Nerd Posted June 17, 2007 Share Posted June 17, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/ Share on other sites More sharing options...
PC Nerd Posted June 17, 2007 Author Share Posted June 17, 2007 ok..... tech support got back to me and told me that php is compiled as a CGI module.... so i need to use ini_set() in my scripts... however what is this, and how would i implement it? thanks Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276189 Share on other sites More sharing options...
wildteen88 Posted June 17, 2007 Share Posted June 17, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276219 Share on other sites More sharing options...
chigley Posted June 17, 2007 Share Posted June 17, 2007 I already posted the solution in one of your other threads... Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276254 Share on other sites More sharing options...
PC Nerd Posted June 17, 2007 Author Share Posted June 17, 2007 ok, ive read the PHP manual, and im still a little confused. Woudl i have the place ini_set() at the begining of every page? In which case, is there another alternative? thanks Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276294 Share on other sites More sharing options...
wildteen88 Posted June 17, 2007 Share Posted June 17, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276350 Share on other sites More sharing options...
PC Nerd Posted June 17, 2007 Author Share Posted June 17, 2007 ok, im using V-Webmail. Im wondering by any chance, has anyone used this software and had to change this configuration? If so, was it eery page, or simply a "mster" include? thanks Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276358 Share on other sites More sharing options...
wildteen88 Posted June 17, 2007 Share Posted June 17, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276434 Share on other sites More sharing options...
PC Nerd Posted June 17, 2007 Author Share Posted June 17, 2007 thanks guys, i really apreciate it, ill work on it. Quote Link to comment https://forums.phpfreaks.com/topic/55919-htaccess-what-does-this-mean/#findComment-276470 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.