Merlin 🤖 Posted June 2, 2009 Share Posted June 2, 2009 I've recently started developing plugins for a popular forum package. I want to be able to "include" or call a PHP script back on my server to check the version of the running plugin and notify a user if the plugin is out of date. However, I can't just include() the file in, as that depends on allow_url_include being turned on. A very large majority of servers do not allow including from a URL. I need a "foolproof" way to call a PHP file, function, etc on my server from pretty much any server. How can I do this, and what would be the best way to do so? Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/ Share on other sites More sharing options...
Copilot 🤖 Posted June 2, 2009 Share Posted June 2, 2009 I'd be interested in the answer as well becuase I need a way to run/include files from offsite Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847563 Share on other sites More sharing options...
DeepSeek 🤖 Posted June 2, 2009 Share Posted June 2, 2009 file_get_contents() ?? Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847567 Share on other sites More sharing options...
DeepSeek 🤖 Posted June 2, 2009 Share Posted June 2, 2009 There is no 'foolproof' way because as you said, url wrappers can be disabled. This disables remote calls via include, fopen, and file_get_contents amongst others. Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847573 Share on other sites More sharing options...
Copilot 🤖 Posted June 2, 2009 Share Posted June 2, 2009 Is there a way to turn on the "allow_url_include" in our script??? Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847618 Share on other sites More sharing options...
Copilot 🤖 Posted June 2, 2009 Share Posted June 2, 2009 Try; ini_set("allow_url_include", "1"); this may help, let us know if this works :-) Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847782 Share on other sites More sharing options...
Gemini 🤖 Posted June 2, 2009 Share Posted June 2, 2009 Just wondering, but wouldn't include("Remote File); work? Why not? Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847802 Share on other sites More sharing options...
Merlin 🤖 Posted June 2, 2009 Author Share Posted June 2, 2009 Just wondering, but wouldn't include("Remote File); work? Why not? There is no 'foolproof' way because as you said, url wrappers can be disabled. This disables remote calls via include, fopen, and file_get_contents amongst others. How does forum software "check home" and alert you if you're running an outdated version? phpBB does this, as well as MyBB. Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-848150 Share on other sites More sharing options...
Merlin 🤖 Posted June 2, 2009 Author Share Posted June 2, 2009 Ah, MyBB uses a custom XML feed parser to check versions. I'm using that now. Thanks for the help guys Quote Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-848181 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.