Subversion Repositories php-qbpwcf

Rev

Rev 3 | Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 182
Line 72... Line 72...
72
	#停止執行
72
	#停止執行
73
	exit;
73
	exit;
74
}
74
}
75
 
75
 
76
#如果第參數為 "help" 或 "-h"
76
#如果第參數為 "help" 或 "-h"
77
if( $_SERVER['argv'][1]==="help" || $_SERVER['argv'][1]==="-h" )
77
if( $_SERVER['argv'][1]==="help" || $_SERVER['argv'][1]==="-h" ){
78
{
78
 
79
	#show help
79
	#show help
80
	help();
80
	help();
81
 
81
 
82
	#停止執行
82
	#停止執行
83
	exit;
83
	exit;
84
 
84
 
85
}#if end
85
	}#if end
86
 
-
 
87
 
86
 
-
 
87
#印出結果
-
 
88
echo base64_encode($_SERVER['argv'][1]);
88
 
89
 
89
#說明
90
#說明
90
function help()
91
function help(){
91
{
92
 
92
	#說明
93
	#說明
93
	echo $_SERVER['argv'][0]." [line start] [line end] [file]".PHP_EOL;
94
	echo $_SERVER['argv'][0]." string to base64 encode".PHP_EOL;
94
}
95
 
-
 
96
	}#function help end
95
 
97
 
96
?>
98
?>