小编sco*_*ang的帖子

升级Zend框架 - 步骤和指导

我维护的网站目前使用的Zend Framework 1.8.0已有两年多的历史了.我想升级到1.11.11,并且在找到如何顺利实现这一目标的基本指导方面遇到了一些麻烦.是否像使用最新文件覆盖库/ Zend文件夹一样简单?

这是我计划采取的步骤.我错过了什么吗?

  1. 下载最新的Zend Framework代码.
  2. SSH进入服务器并将库/ Zend复制到/ path/to/webapp/library并调用类似Zend-1.11的文件夹.
  3. 在我们的网站上提出"网站已关闭维护页面".
  4. cd/path/to/webapp然后制作当前Zend版本的备份副本,例如cp -R Zend Zend-old
  5. mv Zend-1.11 Zend
  6. 删除"网站已关闭维护页面"

此时,/ library/Zend文件夹将具有最新的Zend Framework代码,并且我将"Zend-old"切换回以防出现任何问题.

这是升级的典型方式吗?

php zend-framework

5
推荐指数
1
解决办法
3567
查看次数

如何根据变量而不是字符串搜索iPhone地址簿中的特定用户名

Apple在其QuickContacts项目中提供了以下示例代码,以了解如何搜索特定用户的通讯簿.

-(void)showPersonViewController
{
 // Fetch the address book 
 ABAddressBookRef addressBook = ABAddressBookCreate();

 // Search for the person named "Appleseed" in the address book
 CFArrayRef people = ABAddressBookCopyPeopleWithName(addressBook, CFSTR("Appleseed"));

 // Display "Appleseed" information if found in the address book 
 if ((people != nil) && (CFArrayGetCount(people) > 0))
 {
  ABRecordRef person = CFArrayGetValueAtIndex(people, 0);
  ABPersonViewController *picker = [[[ABPersonViewController alloc] init] autorelease];
  picker.personViewDelegate = self;
  picker.displayedPerson = person;
  // Allow users to edit the person’s information
  picker.allowsEditing = YES;

  [self.navigationController pushViewController:picker animated:YES];
 } …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c addressbook

2
推荐指数
1
解决办法
7951
查看次数

安排一个 cron 作业在每月的第 1、第 2 和第 3 个星期二运行

我希望获得一些帮助来为我拥有的三个脚本设置 cron 计划。我需要安排第一个脚本在每月的第一个星期二运行,第二个脚本在每月的第二个星期二运行,第三个脚本在每月的第三个星期二运行。这是我到目前为止所拥有的。

# Run first script on the 1st Tuesday of every month at 9:00 AM
0 9 1,2,3,4,5,6,7 * 2 wget -q -O /dev/null http://site.com/first-script

# Run second script on the 2nd Tuesday of every month at 9:00 AM
0 9 8,9,10,11,12,13,14 * 2 wget -q -O /dev/null http://site.com/second-script

# Run third script on the 3rd Tuesday of every month at 7:00 AM
0 7 15,16,17,18,19,20,21 * 2 wget -q -O /dev/null http://site.com/third-script
Run Code Online (Sandbox Code Playgroud)

我相信这些脚本将在每个月的第 1 个、第 2 个和第 …

cron

1
推荐指数
1
解决办法
7764
查看次数

标签 统计

addressbook ×1

cron ×1

iphone ×1

objective-c ×1

php ×1

zend-framework ×1