我维护的网站目前使用的Zend Framework 1.8.0已有两年多的历史了.我想升级到1.11.11,并且在找到如何顺利实现这一目标的基本指导方面遇到了一些麻烦.是否像使用最新文件覆盖库/ Zend文件夹一样简单?
这是我计划采取的步骤.我错过了什么吗?
此时,/ library/Zend文件夹将具有最新的Zend Framework代码,并且我将"Zend-old"切换回以防出现任何问题.
这是升级的典型方式吗?
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) 我希望获得一些帮助来为我拥有的三个脚本设置 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 个和第 …