Menu

Patch allow_url_fopen needed (PhotoAlbum.php)

Help
2004-04-14
2012-10-11
  • Andre Gellert

    Andre Gellert - 2004-04-14

    Hello,
    some minutes ago i had to patch my local "lib/plugin/PhotoAlbum.php"  (in 1.3.9) .
    The problem was, that , although my server globals are allow_url_fopen=1 , within the function fromFile it was set to 0 (and i do know why: the .htaccess sets this to false...)

    I did patch the function fromFile with this method:
    at the beginning I save the old value and set it to true:
    $old_value=ini_get('allow_url_fopen');
    ini_set('allow_url_fopen',1);

    and at the end of the function i set it back to the old value:
    ini_set('allow_url_fopen',$old_value);

    This works now, the error "Wrong server setting: allow_url_fopen set to Off" isnt shown anymore, but is this really the way to get the PhotoAlbum work ?

    Maybe this is something, you might have missed while testing.

    Bye Andre

     
    • Reini Urban

      Reini Urban - 2004-04-15

      we have now a workaround library lib/HttpClient.php

      I'll use this for the Photoalbum plugin also in the next release.

       
      • Reini Urban

        Reini Urban - 2004-04-18

        fixed in current CVS (and more)
        weblocation argument is now optional on local fs,

        no lib/HttpClient.php workaround yet.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.