Re: Register_Globals on on some website

From: Justin Koivisto (spam_at_koivi.com)
Date: 07/07/04


Date: Wed, 07 Jul 2004 16:17:59 GMT

bonehead wrote:

> Justin Koivisto wrote:
>
>> Andrea A wrote:
>>
>>> Is it possible to set Register Globals on or off depending on the
>>> virtual
>>> directory of apache in which PHP is running? Is it possible using
>>> only one
>>> php.ini?>
>>
>>
>> Here's from my .htaccess for one of my sites:
>>
>> php_flag register_globals 0
>>
>> Changing it to 1 will turn it on.
>>
>> You should also be able to do this inside the VirtualHost directive.
>
> This is interesting, I did not know you could do this, but I don't
> really understand anything about virtual directory/virtual host. I'll do
> a search and see if I can find something about this, but I wonder if
> anyone would care to recommend some good on-line documentation?

http://httpd.apache.org/docs/ :-D That's where I get it all...

Also, the PHP stuff:

what can be set where:
http://us2.php.net/ini_set

and for apache *module* settings:
http://us2.php.net/manual/en/configuration.changes.php

Looks like these *won't* work for CGI mode.

-- 
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
              alt.php* groups are not recommended.


Relevant Pages

  • Re: Need recommendation for web development software
    ... Can you give examples of good websites? ... search & replace across multiple files, intenting & color highlighting for PHP coding... ... Keep everything clean and properly indented & you will be fine. ... I'd recommend something like php based 'gallery' which generates dynamic pages on the server so it's easier to integrate changes when you make improvements or changes to the site. ...
    (alt.photography)
  • Re: book recommendation for experienced programmer?
    ... > What book do you recommend help take me there? ... > different problems and telling me how a PHP expert would solve the problem. ... Most PHP books are either pretty basic or just a beefed up reference, ... Of the PHP variety, I can recommend "Core PHP Programming, 3rd ed." by ...
    (comp.lang.php)
  • Re: How to learn
    ... Toby A Inkster BSc ARCS ... I would really recommend you buy a book then, ... If you are determined to use the internet to ... PHP & MySQL" from O'Reilly Books. ...
    (comp.lang.php)
  • Re: Can anyone recommend a distance learning PHP and MySQL course which will get you a recognised qu
    ... | Can anyone recommend a distance learning PHP and MySQL course which will ... but such certification is *very* overrated and hardly comes into play ... relevant to what the employer wants done. ... the best recommendation i would say is for you to program a php website ...
    (alt.php)
  • Re: Web & Audio Server Advice Sought
    ... Jinzora only needs PHP, although there are a couple of recommended ... I highly recommend mt-daapd/firefly media server if ... but your choice of media players is limited to Banshee. ... but Rhythmbox can't play the transcoded ...
    (Ubuntu)