Jump to content

[SOLVED] Remote File Version Check?


Altec

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.