adm1n Posted August 13, 2013 Share Posted August 13, 2013 Hi, Is there a API method that returns the current version of WHMCS ? If this is not provided, would future upgrades be API compatible ? Thanks, 0 Quote Link to comment Share on other sites More sharing options...
imaticon Posted August 14, 2013 Share Posted August 14, 2013 Why an API method for that? Use mysql query: $table = "tblconfiguration"; $fields = "value"; $where = array("setting"=>"Version"); $result = select_query($table,$fields,$where); $data = mysql_fetch_array($result); echo $data["value"]; Regards, Marco 0 Quote Link to comment Share on other sites More sharing options...
adm1n Posted August 14, 2013 Author Share Posted August 14, 2013 Hi, I am trying to make a custom site for a reseller ( not hosted in the same server ) .. and want to check the version, so that I can write the APIs version specific, and in future if WHMCS is updated and API is changed or modified, it does not break but show a custom error. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 15, 2013 Share Posted August 15, 2013 You can create your own API function to do this by adding a file to the includes/api directory. The filename should match the function name. You can then use the code that Marco provided to lookup the version. http://www.whmcsjet.com/introduction-to-custom-whmcs-api-functions/ http://www.visions.se/creating-your-own-api-functions-for-whmcs/ 0 Quote Link to comment Share on other sites More sharing options...
imaticon Posted August 15, 2013 Share Posted August 15, 2013 Never I go to sleep without learning something new, thank you for sharing your experiences Joe! Regards, Marco 0 Quote Link to comment 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.