dell perch330_Perch插件开发和旧PHP版本

dell perch330

One of our aims for Perch – the little CMS product developed by my company edgeofmyseat.com – is that the barrier to entry, to getting it installed is as low as possible.

我们对Perch的目标之一是我公司edgeofmyseat.com开发的小型CMS产品,它的进入和安装门槛尽可能低。

We chose PHP because hosting is cheap and plentiful, and it is very easy to set up a local development environment. Even for people who have never run a webserver on their computer before. We made the baseline PHP 5, not a version of PHP 5 but just PHP 5 – so a customer can ask their host “do you support PHP 5?” and know that it should work.

我们选择PHP是因为托管的价格便宜且丰富,并且设置本地开发环境非常容易。 即使对于以前从未在其计算机上运行过网络服务器的用户。 我们所做的基线PHP 5,而不是一个版本PHP 5的只是PHP 5 - ?“你是否支持PHP 5”,这样客户可以要求其主机 并且知道它应该工作。

However welcoming all versions of PHP 5 can create all kinds of headaches. We had a webchat with some Perch users a week ago, one of the things they requested was a simple way to backup database and resource files uploaded by editors into Perch. In the shower on Saturday morning I thought this through and figured that it should only take a couple of hours to write. All I needed to do was give an interface to zip up and download the files and the output of mysqldump – right?

但是,欢迎所有版本的PHP 5都会引起各种麻烦。 一周前,我们与一些Perch用户进行了一次网络聊天,他们要求的一件事是将编辑者上传的数据库和资源文件备份到Perch的简单方法。 在周六早上的淋浴间,我仔细考虑了一下,并认为只需要几个小时就可以写完。 我需要做的就是提供一个界面来压缩和下载文件以及mysqldump的输出-对吗?

Wrong.

错误。

Or, right, if I could assume that the user was running PHP greater than 5.2 (which has the ZipArchive class), or that the user could execute a command from PHP and that mysqldump was in their path. With Perch we can assume none of these things. On a daily basis we discover just how terrible, terrible hosting can be.

或者,对,如果我可以假设用户运行的PHP大于5.2(具有ZipArchive类),或者用户可以从PHP执行命令并且mysqldump位于其路径中。 使用Perch,我们可以假设这些都不是。 每天我们都会发现托管有多么可怕,多么可怕。

Every requirement we add to Perch comes back to us in support and gives the user the impression that it is hard to install. So we try really hard in the base product and core apps to not require any more than a functioning PHP 5 and MySQL greater than 4.1. For many of our users Perch is the first time they have ever installed a CMS, or installed any server side code at all. Making the process as easy as possible is one of our biggest challenges. We will watch with interest what happens when WordPress starts to require PHP 5.2 with the release of WordPress 3.2 as I think this may cause a tipping point where hosts need to upgrade to allow people to upgrade WordPress. In which case we may be able to move a future release of Perch to 5.2 – which would have solved my Perch Backup problem of last weekend. However, moving to 5.2 wouldn’t solve many of the configuration specific issues we see.

我们添加到Perch的每个要求都返回给我们以支持,并给用户留下难以安装的印象。 因此,我们非常努力地在基本产品和核心应用程序中要求功能正常的PHP 5和大于4.1MySQL。 对于我们许多用户来说,Perch是他们第一次安装CMS或完全安装任何服务器端代码。 使过程尽可能容易是我们最大的挑战之一。 我们将感兴趣地观察当WordPress 在WordPress 3.2发行版中开始要求PHP 5.2时会发生什么,因为我认为这可能会导致主机需要升级以允许人们升级WordPress的转折点。 在这种情况下,我们也许可以将Perch的将来版本移至5.2 –可以解决上周末的Perch Backup问题。 但是,升级到5.2并不能解决我们看到的许多特定于配置的问题。

As things stand Drew and I are becoming very knowledgeable in the peculiarities of various hosting companies, the majority of users have no issues at all but problems caused by a strange PHP configuration on a host can be hard to work through in support with a user who isn’t used to debugging a PHP issue. I wondered if this knowledge is the sort of thing though that could be shared. A PHP web hosting wiki of sorts where software developers could share the quirks of hosting with each other, and users could check to see if hosting was a known nuisance when it comes to installing scripts. It might encourage hosts to standardize on installations and would also save other software companies from discovering the same issues we have already uncovered.

随着Drew的发展,我对各种托管公司的特性越来越了解,大多数用户根本没有问题,但是在主机上由怪异的PHP配置引起的问题可能很难解决,因为不用于调试PHP问题。 我想知道这些知识是否是可以共享的东西。 一个PHP Web托管Wiki,软件开发人员可以相互共享托管的怪癖,并且用户可以检查托管脚本是否是已知的麻烦。 它可以鼓励主机标准化安装,也可以避免其他软件公司发现我们已经发现的相同问题。

翻译自: https://rachelandrew.co.uk/archives/2011/01/18/perch-addon-development-and-old-php-versions/

dell perch330

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值