以编程方式获取最新的joomla版本编号 [英] get the latest joomla version numer programmatically

查看:124
本文介绍了以编程方式获取最新的joomla版本编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在维护一项功能,我想获取所有流行CMS的最新版本号(以字符串形式)并将其存储到数据库中.

I am working on a maintenance function which I want to get the latest version numbers(as strings) of all the popular CMS and store them into database.

通过将HEAD请求发送到" http://wordpress.org/latest",然后从文件名"wordpress-3.8.1.tar.gz"中获取版本号字符串"3.8.1".

I've done the wordpress part by send a HEAD request to "http://wordpress.org/latest" and get the versioin number string "3.8.1" from the filename "wordpress-3.8.1.tar.gz".

现在我想知道如何处理Joomla,或者如果可能的话,处理magento.

Now I am wondering how could I deal with Joomla, or if possible, magento.

谢谢.

推荐答案

尝试一下,

对于长期支持(LTS)分支-(推荐)稳定发布

For Long Term Support (LTS) branch -( Recommended) Stable release

http://update.joomla.org/core/list.xml

短期支持(STS)分支

Short term support (STS) branch

http://update.joomla.org/core/sts/list_sts.xml

测试版本.

http://update.joomla.org/core/test/list_test.xml

所有这些XML文件都具有指向其详细信息zip文件的链接.

All these XML files have link to their details zip files.

希望有帮助.

这篇关于以编程方式获取最新的joomla版本编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆