NYCPHP Meetup

NYPHP.org

[nycphp-talk] allow_url_fopen (was: parse file, return as string)

Tim Gales tgales at tgaconnect.com
Thu Aug 19 15:51:04 EDT 2004


David Mintz
> On Thu, 19 Aug 2004, Tim Gales wrote:
>
> > allow_url_fopen is a system level configuration
> > directive and can only be set or unset in php.ini.
> > (you can't undo the setting dynamically at runtime for security
> > reasons)
> 
> I realize that's what the docs say, yet interestingly enough,
> I can ini_set this value on at least one of the hosts I use.
> 
> <?php
> echo "Current value: " ;
> echo  ini_get('allow_url_fopen')  ?  'enabled' : 'disabled' ;
> ini_set('allow_url_fopen',1); echo " ....and now:  "; echo 
> ini_get('allow_url_fopen')  ?  'enabled' : 'disabled' ; phpinfo(); ?>
> 
> Ouput:
> 
> Current value: disabled ....now: enabled
> 
> Followed by our phpinfo which says allow_url_fopen: master
> value off, local value on. (PHP 4.3.4 running as an Apache 
> 1.3.29 module)
> 

Before 4.3.5 doesn't count. 
(King's cross -- you probably didn't 
notice I crossed my fingers on one hand)

Changed "allow_url_fopen" php.ini option 
to be PHP_INI_SYSTEM. (Sara) 
http://www.php.net/ChangeLog-4.php 

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com






More information about the talk mailing list