I've enabled allow_url_fopen
via MultiPHP INI Editor in cPanel, but if I check with phpinfo()
it's still on 'Off'. Why's that? I've cleared my cache.
gentlemedia
803
Master Poster
Recommended Answers
Jump to PostI'll guess PHP or such needs to restart. Look directly into the Sun? (nope, look at the php.ini file to see if the control/ini editor is changing it or not.
http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html
Jump to PostThe hosting can matter here. I wanted to be sure the php.ini was good before I noted where the host can control/override this with a custom compile. https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-allow-url-fopen-directive and links there tell us …
Jump to PostAs you read they compile php with it on/off and don't seem to use a php version that allows changing it in php.ini. Yours?
Jump to Posthttp://php.net/manual/en/filesystem.configuration.php (documentation) says it's enabled since 4.x.
https://stackoverflow.com/questions/43543297/allow-url-fopen-is-on-but-phpinfo-says-off notes same issue but an odd fix at …
Jump to PostRead the source Luke (!)
From http://php.net/distributions/php-7.0.21.tar.gz
Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. ; http://php.net/allow-url-fopen allow_url_fopen = On ; Whether to allow include/require to open URLs (like …
All 17 Replies
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
803
Master Poster
rproffitt
commented:
Still need to check the php.ini directly to see what's what.
+12
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
commented:
The second link gave ne the answer
+7
gentlemedia
803
Master Poster
rproffitt
commented:
Keep digging.
+0
rproffitt
2,565
"Nothing to see here."
Moderator
gentlemedia
commented:
Yes, the production ini file is the one rhat I edit within WHM
+0
gentlemedia
803
Master Poster
gentlemedia
803
Master Poster
rproffitt
commented:
Read it. Shared my suspicion there.
+0
gentlemedia
803
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.