You are here: Re: [PHP] .htaccess config « PHP « IT news, forums, messages
Re: [PHP] .htaccess config

Posted by Jochem Maas on 10/21/07 11:12

Philip Hallstrom wrote:
> allow_url_fopen can only be set in php.ini. See here for more info:

scope of ini settings (from the manual)...

Constant Value Meaning
PHP_INI_USER 1 Entry can be set in user scripts or in Windows registry
PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
PHP_INI_ALL 7 Entry can be set anywhere

allow_url_fopen is PHP_INI_SYSTEM.
note that it can also be passed as an arg to the CLI e.g (-d flag):

/usr/bin/php -dallow_url_fopen=1 ./getmyremotefile.php

>
> http://us2.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
>
>
>
> On Thu, 31 Mar 2005, Neo Theone wrote:
>
>> Hi
>>
>> I got a simple problem:
>> I need to have allow_url_fopen on for a certain directory and so I
>> wanted to control it by .htaccess file.
>> now I can control other php_flags like register_globals in this
>> directory (so apache allows the Override) but I just simple can't get
>> the following line to work:
>> php_flag allow_url_fopen on
>>
>> any help is appreciated
>> neo
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация