SAPI:Server Application Programming Interface 服务器端应用编程端口。研究过PHP架构的同学应该知道这个东东的重要性,它提供了一个接口,使得PHP可以和其他应用进行交互数据。 本文不会详细介绍每个PHP的SAPI,只是针对最简单的CGI SAPI,来说明S...
一.基本原理
CGI:通用网关接口(Common Gateway Interface)是一个Web服务器主机提供信息服务的标准接口。通过CGI接口,Web服务器就能够获取客户端提交的信息,转交给服务器端的CGI程序进行处理,最后返回结果给客户端。
组成CGI通信系统的是两部分:一部分是html页面,就是在用户端浏览器上显示的页面。另一部分则是运行在服务器上的Cgi程序。
它们之间...
分类:
其他好文 时间:
2014-10-15 20:11:11
阅读次数:
413
在使用Oracle JDBC驱动时,有些问题你是不是通过替换不同版本的Oracle JDBC驱动来解决的?最常使用的ojdbc14.jar有多个版本,classes12.jar有多个版本你了解吗?连接类型: 1、 JDBC OCI: oci是oracle call interface的缩写,此驱动类...
分类:
数据库 时间:
2014-10-15 19:29:11
阅读次数:
327
eg:数据库表对象
@interface Meditation :
NSManagedObject
@property (nonatomic,
retain) NSString * order;//用来排序的属性值,用0、1、2、3...排序
@end
//在这个方法里操作
- (void)tableView:(UITableView *)tableView ...
分类:
编程语言 时间:
2014-10-15 18:22:01
阅读次数:
113
效果图:代码:.h#import @interface RootViewController : UIViewController{ //列表 UITableView * _tableViewList; //显示内容 UITableView * _tableViewMembe...
分类:
其他好文 时间:
2014-10-15 16:39:21
阅读次数:
204
CGI(Common Gateway Interface)是能让web服务器和CGI脚本共同处理客户的请求的协议。它的协议定义文档是http://www.ietf.org/rfc/rfc3875。
其中Web服务器负责管理连接,数据传输,网络交互等。至于CGI脚本就负责管理具体的业务逻辑。
Web服务器的功能是将客户端请求(HTTP Request)转换成CGI脚本请求,然后执行脚本,...
分类:
其他好文 时间:
2014-10-15 15:15:00
阅读次数:
131
简介Netstat 命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等。输出信息含义执行netstat后,其输出结果为Active Internet co...
分类:
Web程序 时间:
2014-10-15 12:40:20
阅读次数:
379
#import @interface ClassVirable : NSObject{ NSInteger year;//保护树形}@property int age;//不用在实现文件中写@synthesize age就会有setAge:和age方法了-(void)set:(NSIntege...
分类:
其他好文 时间:
2014-10-15 12:00:20
阅读次数:
147
使用UIImagePickerController 进行录制
#import "ViewController.h"
#import
#import
@interface ViewController ()
- (IBAction)videoRecod:(id)sender;
@end
@implementation ViewController
- (void)viewDid...
分类:
其他好文 时间:
2014-10-15 00:30:09
阅读次数:
242
第一、strong关键字与retain关似,用了它,引用计数自动+1
如果person定义如下:
@interface Person : NSObject
@property(nonatomic,strong)Book *book1;
@end @autoreleasepool {
p1=[[Person alloc] init];
Book *book...
分类:
其他好文 时间:
2014-10-14 19:57:39
阅读次数:
207