Subversion Repositories php-qbpwcf

Rev

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

Rev 368 Rev 376
Line 1410... Line 1410...
1410
		#函式說明:
1410
		#函式說明:
1411
		#依據行號分隔抓取檔案的內容,結果會回傳一個陣列
1411
		#依據行號分隔抓取檔案的內容,結果會回傳一個陣列
1412
		#回傳的變數說明:
1412
		#回傳的變數說明:
1413
		#$result["status"],執行是否成功,"true"代表成功;"fasle"代表失敗.
1413
		#$result["status"],執行是否成功,"true"代表成功;"fasle"代表失敗.
1414
		#$result["error"],錯誤訊息提示.
1414
		#$result["error"],錯誤訊息提示.
1415
		#$result["warning"],警告訊息.
1415
		#$result["fileNotExist"],字串,"true"代表目標檔案不存在;"false"代表目標檔案存在.
-
 
1416
		#$result["fileCreated"],字串,"true"代表目標檔案被本函式建立;"false"代表檔案不是透過本函式建立.
1416
		#$result["function"],當前執行的函數名稱.
1417
		#$result["function"],當前執行的函數名稱.
1417
		#$result["fileContent"],爲檔案的內容陣列.
1418
		#$result["fileContent"],爲檔案的內容陣列.
1418
		#$result["lineCount"],爲檔案內容總共的行數.
1419
		#$result["lineCount"],爲檔案內容總共的行數.
1419
		#$result["fullContent"],為檔案的完整內容.
1420
		#$result["fullContent"],為檔案的完整內容.
1420
		#$result["base64dataOnly"],檔案的base64data.
1421
		#$result["base64dataOnly"],檔案的base64data.
Line 1445... Line 1446...
1445
		unset($conf["fileAccess::getFileContent"]);
1446
		unset($conf["fileAccess::getFileContent"]);
1446
 
1447
 
1447
		#如果執行失敗
1448
		#如果執行失敗
1448
		if($getFileContent["status"]==="false"){
1449
		if($getFileContent["status"]==="false"){
1449
 
1450
 
-
 
1451
			#如果檔案不存在
-
 
1452
			if($getFileContent["fileNotExist"]==="true"){
-
 
1453
			
-
 
1454
				#設置結果
-
 
1455
				$result["content"]=array();
-
 
1456
				
-
 
1457
				#設置執行正常
-
 
1458
				$result["status"]="true";
-
 
1459
			
-
 
1460
				#回傳結果
-
 
1461
				return $result;
-
 
1462
			
-
 
1463
				}#if end
-
 
1464
 
1450
			#設置執行失敗
1465
			#設置執行失敗
1451
			$result["status"]="false";
1466
			$result["status"]="false";
1452
 
1467
 
1453
			#設置錯誤訊息
1468
			#設置錯誤訊息
1454
			$result["error"]=$getFileContent;
1469
			$result["error"]=$getFileContent;