Altec 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? Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/ Share on other sites More sharing options...
rhodrykorb 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 Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847563 Share on other sites More sharing options...
BK87 Posted June 2, 2009 Share Posted June 2, 2009 file_get_contents() ?? Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847567 Share on other sites More sharing options...
trq 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. Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847573 Share on other sites More sharing options...
rhodrykorb Posted June 2, 2009 Share Posted June 2, 2009 Is there a way to turn on the "allow_url_include" in our script??? Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847618 Share on other sites More sharing options...
rhodrykorb 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 :-) Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847782 Share on other sites More sharing options...
Garethp Posted June 2, 2009 Share Posted June 2, 2009 Just wondering, but wouldn't include("Remote File); work? Why not? Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-847802 Share on other sites More sharing options...
Altec 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. Link to comment https://forums.phpfreaks.com/topic/160579-solved-remote-file-version-check/#findComment-848150 Share on other sites More sharing options...
Altec 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 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
Archived
This topic is now archived and is closed to further replies.