| |
请教:我想在html中通过调用一个cgi函数显示服务器端的系统时间(I`! cgi如下:=Q#n& //////////////gettime.c/////////////YVpuC #include <stdio.h> j:HU\H #include <time.h> L$;H. #include <string.h>Zr?:K int main() =i {©雷傲极酷超级论坛 -- 雷傲极酷超级论坛,最新软件,BT 下载,游戏娱乐,交友聊天,您网上的自由天堂 0 time_t t;F char *curtime;0Wh7). struct tm *local;5ol[6q printf("Content-type: text/html;\n\n"); a t=time(NULL); 6$1 local=localtime(&t);#J curtime=ctime(&t);<)u_0 fprintf(stdout,curtime);dR$(v@ printf("%s\n",curtime);6 return 0;0D, } ©雷傲极酷超级论坛 -- 雷傲极酷超级论坛,最新软件,BT 下载,游戏娱乐,交友聊天,您网上的自由天堂 K| ©雷傲极酷超级论坛 -- 雷傲极酷超级论坛,最新软件,BT 下载,游戏娱乐,交友聊天,您网上的自由天堂 ouEj 在html中调用: Z,SE0C document.write('<SCRIPT src=\"gettime.cgi\"><\/SCRIPT>');;_~u ©雷傲极酷超级论坛 -- 雷傲极酷超级论坛,最新软件,BT 下载,游戏娱乐,交友聊天,您网上的自由天堂 3 是否可以??V`2np 谢谢©雷傲极酷超级论坛 -- 雷傲极酷超级论坛,最新软件,BT 下载,游戏娱乐,交友聊天,您网上的自由天堂 8
| | |
|
|
|