- 博客(0)
- 资源 (6)
- 收藏
- 关注
CI框架(CodeIgniter)实现ThinkPHP一样的二级域名解析
本例主要实现在CI框架中像ThinkPHP一样的二级域名解析方式
1. ci_url_rewirte.php 为实现的代码 可将其插入到system/URI.php 即框架URI类的相应地方
2. URI.php 为我实验版本(Version 1.0)的URI类,其他版本应用,请参照。若为相同版本可直接覆盖。
3. domain.php中配置要解析的二级域名。放到\application\config中
4. 另附二级域名重写apache的配置文件 httpd-vhosts.conf。
无兄弟,不编程。 希望能与大家共同交流进步。
@author : [email protected]
2013-03-18
计算机等级考试二级c语言试题
全国计算机考试二级c语言试题
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define N 9
long ctod( char *s )
{ long d=0;
while(*s)
if(isdigit( *s)) {
/**********found**********/
d=d*10+*s-'0';
/**********found**********/
*s++; }
return d;
}
long fun( char *a, char *b )
{
/**********found**********/
return *a+*b;
}
main()
{ char s1[N],s2[N];
do
{ printf("Input string s1 : "); gets(s1); }
while( strlen(s1)>N );
do
{ printf("Input string s2 : "); gets(s2); }
while( strlen(s2)>N );
printf("The result is: %ld\n", fun(s1,s2) );
}
2009-09-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人