[Cialug] register_globals and magic_quotes - again!

carl-olsen at mchsi.com carl-olsen at mchsi.com
Thu Jun 7 11:34:21 CDT 2007


I don't know much about the .htaccess file, but I think it is just an Apache configuration file.

Carl

-------------- Original message ----------------------
From: Afan Pasalic <afan at afan.net>
>
> but, I'm not changing anything in apache conf file nor php.ini?
> also, I can't restart apache on shared hosting server.
> 
> -afan
> 
> carl-olsen at mchsi.com wrote:
> > I would definitely want to restart Apache if I were trying to change a setting 
> in either an Apache configuration file or a PHP configuration file.
> >
> > Carl
> >
> > -------------- Original message ----------------------
> > From: Afan Pasalic <afan at afan.net>
> >   
> >> it doesn't work either
> >> :-(
> >>
> >>
> >>
> >> Dave J. Hala Jr. wrote:
> >>     
> >>> I've had trouble in the past when I didn't restart apache.
> >>>
> >>> You could also try using the following syntax:
> >>>
> >>> php_value register_globals "On"
> >>>
> >>> :) Dave
> >>>
> >>> On Thu, 2007-06-07 at 05:39, Afan Pasalic wrote:
> >>>   
> >>>       
> >>>> nope. I can't restart because it's shared hosting and I don't have such 
> >>>> a permits.
> >>>> though, I think I don't need to restart apache after change in 
> >>>> .htaccess, right?
> >>>>
> >>>>
> >>>> Dave J. Hala Jr. wrote:
> >>>>     
> >>>>         
> >>>>> Did you restart apache after you made the changes to  .htaccess?
> >>>>>  
> >>>>> On Thu, 2007-06-07 at 05:32, Afan Pasalic wrote:
> >>>>>   
> >>>>>       
> >>>>>           
> >>>>>> Nope. Doesn't work. At least didn't gave me internal Server Error
> >>>>>> :-)
> >>>>>>
> >>>>>> I created new .htaccess file (old one renamed), put in the code from the 
> >>>>>> site you mentioned and changed
> >>>>>> php_value register_globals 1
> >>>>>> to
> >>>>>> php_value register_globals  0 (I want to turn it off)
> >>>>>> and but still shows in phpinfo() for both values On.
> >>>>>>
> >>>>>> :-(
> >>>>>>
> >>>>>> -afan
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Dave J. Hala Jr. wrote:
> >>>>>>     
> >>>>>>         
> >>>>>>             
> >>>>>>> Try this.
> >>>>>>>
> >>>>>>>
> >>>>>>>               
> >> http://kim.biyn.com/Linux/enabling_register_globals_locally_for_virtual_host
> >>     
> >>>>>>> On Thu, 2007-06-07 at 04:58, Afan Pasalic wrote:
> >>>>>>>   
> >>>>>>>       
> >>>>>>>           
> >>>>>>>               
> >>>>>>>> hi,
> >>>>>>>> this question is already posted thousand times. but, after I tried for 
> 2 
> >>>>>>>> hours to figure it out by myself, I gave up and I'm posting the 
> question 
> >>>>>>>> here.
> >>>>>>>> I'm rebuilding one site. php 4.4.4
> >>>>>>>> as usual, register_globals on, as well as magic_quotes.
> >>>>>>>> I tried to turn it off using .htaccess but what ever I change in the 
> >>>>>>>> (already existing) file, I would get Internal Server Error
> >>>>>>>>
> >>>>>>>> this is content of the .htaccess file:
> >>>>>>>>
> >>>>>>>> # -FrontPage-
> >>>>>>>>
> >>>>>>>> IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
> >>>>>>>>
> >>>>>>>> <Limit GET POST>
> >>>>>>>> order deny,allow
> >>>>>>>> deny from all
> >>>>>>>> allow from all
> >>>>>>>> </Limit>
> >>>>>>>> <Limit PUT DELETE>
> >>>>>>>> order deny,allow
> >>>>>>>> deny from all
> >>>>>>>> </Limit>
> >>>>>>>> AuthName mkl1332
> >>>>>>>> AuthUserFile /u/web/afan/_vti_pvt/service.pwd
> >>>>>>>> AuthGroupFile /u/web/afan/_vti_pvt/service.grp
> >>>>>>>>
> >>>>>>>> and I tried to add
> >>>>>>>> php_flag register_globals Off
> >>>>>>>> and it doesn't work (internal server error)
> >>>>>>>>
> >>>>>>>> I tried with register_global 0 - same thing.
> >>>>>>>>
> >>>>>>>> could you please point me where to look after?
> >>>>>>>>
> >>>>>>>> thanks for any help.
> >>>>>>>>
> >>>>>>>> -afan
> >>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> Cialug mailing list
> >>>>>>>> Cialug at cialug.org
> >>>>>>>> http://cialug.org/mailman/listinfo/cialug
> >>>>>>>>     
> >>>>>>>>         
> >>>>>>>>             
> >>>>>>>>                 
> >>>>>> _______________________________________________
> >>>>>> Cialug mailing list
> >>>>>> Cialug at cialug.org
> >>>>>> http://cialug.org/mailman/listinfo/cialug
> >>>>>>     
> >>>>>>         
> >>>>>>             
> >>>> _______________________________________________
> >>>> Cialug mailing list
> >>>> Cialug at cialug.org
> >>>> http://cialug.org/mailman/listinfo/cialug
> >>>>     
> >>>>         
> >> _______________________________________________
> >> Cialug mailing list
> >> Cialug at cialug.org
> >> http://cialug.org/mailman/listinfo/cialug
> >>     
> >
> >
> >   




More information about the Cialug mailing list