首页 软件开发 代码片段 ( Page 590 )

代码片段 8064

#PHP
http请求处理PHP类

/** * http请求处理类(基于CURL进行封装) * * @author Xiwei Ye * @version $Id$ */ class cls_http_request…

php
2015-01-14 982

#Objective-C
iOS判断手机方向改变

ios开发-判断手机反转 //监听手机方向改变事件 [[NSNotificationCenter defaultCenter] addObserver:self selector:…

2015-01-14 644

#PHP
PHP的AES加密类

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -…

php
2015-01-14 993

#Objective-C
iOS 检测版本更新

如果我们要检测app版本的更新,那么我们必须获取当前运行app版本的版本信息和appstore 上发布的最新版本的信息。 当前运行版本信息可以通过info.plist文件中的 ve…

2015-01-14 207

#Objective-C
获取手机通讯录 iOS去除数字以外的所有字符

// // ViewController.m // 获取手机通讯录 //记得导入头文件#import <AddressBook/AddressBook.h>#impor…

2015-01-14 202

#PHP
php数据库备份脚本

// 备份数据库 $host = "localhost"; $user = "root"; //数据库账号 $password = &quo…

php
2015-01-14 176

#SQL
将 MERGE 语句的执行结果插入到另一个表中

USE AdventureWorks2012; GO CREATE TABLE Production.UpdatedInventory (ProductID INT NOT NUL…

sql
2015-01-14 364

#Objective-C
iOS晃动检测

1、在AppDelegate.h中进行如下设置: 1. -(BOOL)application:(UIApplication *)applicationdidFinishLaunch…

2015-01-14 614

#Objective-C
手机号码 验证

+ (BOOL) isMobileNumber:(NSString *)mobileNum; + (BOOL) isMobileNumber:(NSString *)mobileN…

2015-01-14 671

#PHP
Postgresql DB的访问PHP类

/** * The generic DB access Class, Entry of all DB Access * Only PG is supported -- 201210…

php
2015-01-14 188

#SQL
设置SQL的Agent代理的登陆名和密码问题

-- Copyright (C) 1991-2002 SQLDev.Net -- -- file: sp_sqlagent_set_connection.sql -- descr.…

sql
2015-01-14 620

#Objective-C
iOS- NSTimeInterval获取时间间隔

想在程序 开始或者进入某个界面,到结束程序或退出某个界面,获取到这个持续时间.获取到这个时间还需要转化一个取得时分秒. startTime == 全局变量 NSString *st…

2015-01-14 631