James Moe <jimoe@xxxxxxxxxxxxxx> wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hello, > php 5.2.2 > > I have need of a remote procedure call the requires >"allow_url_fopen" to be enabled. The remote call works fine on my test >system which does have allow_url_fopen enabled. > So I thought, "This is a job for ini_set()." It did not work. :-( > $oldval = ini_set("allow_url_fopen", 1); > The remote call is made after the above statement. Clearly there is >more to it than I expected. > What is the correct way to allow URL fopen on the fly? > >- -- >James Moe >moe dot james at sohnen-moe dot com >520.743.3936 >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v2.0.18 (GNU/Linux) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > >iEYEARECAAYFAk/Ag00ACgkQzTcr8Prq0ZNpqACgsPg1UcmiXcxxWYhvl0XaUi7N >KDMAn29qcLCYdVDGWWYGTqZhToRtJRfA >=gnCT >-----END PGP SIGNATURE----- > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php You won't be able to set it with ini_set(), its a PHP_INI_SYSTEM setting, which can only be set from php.ini or httpd.conf. I did read a not that it had changed on recent versions to allow .htaccess setting this, but I forget exactly which version you'll need. Thanks, Ash http://ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php