[wp-trac] [WordPress Trac] #18744: Check if web hosting allows fopen

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 22 14:29:12 UTC 2011


#18744: Check if web hosting allows fopen
-------------------------+------------------------------
 Reporter:  denzel_chia  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by denzel_chia):

 Yes, I am using get_theme_data() to get the theme information on locally
 installed theme, but was met with fopen error, because allow_url_fopen, if
 set to Off in php.ini will disallow fopen function completely. All web
 hosting has different settings, so was thinking of adding this check so
 that perhaps, it can fail silently.

 I wasn't using get_file_data() to get any external site file.

 Thanks!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18744#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list