Subversion Repositories php-qbpwcf

Rev

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

Rev 99 Rev 226
Line 2... Line 2...
2
<?php
2
<?php
3
 
3
 
4
/*
4
/*
5
 
5
 
6
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
7
    Copyright (C) 2015~2024 Min-Jhin,Chen
7
    Copyright (C) 2014~2025 MIN ZHI, CHEN
8
 
8
 
9
    This file is part of QBPWCF.
9
    This file is part of QBPWCF.
10
 
10
 
11
    QBPWCF is free software: you can redistribute it and/or modify
11
    QBPWCF is free software: you can redistribute it and/or modify
12
    it under the terms of the GNU General Public License as published by
12
    it under the terms of the GNU General Public License as published by
Line 320... Line 320...
320
 
320
 
321
	#debug
321
	#debug
322
	#var_dump(__LINE__,$proc["content"][0]);
322
	#var_dump(__LINE__,$proc["content"][0]);
323
 
323
 
324
	}#if end
324
	}#if end
325
	
325
 
326
#debug
326
#debug
327
#var_dump(__LINE__,$proc["content"][0]);
327
#var_dump(__LINE__,$proc["content"][0]);
328
 
328
 
329
#如果有 $proc["content"][0]["content"]
329
#如果有 $proc["content"][0]["content"]
330
if(isset($proc["content"][0]["content"])){
330
if(isset($proc["content"][0]["content"])){
Line 374... Line 374...
374
#var_dump(__LINE__,$proc["content"][0]["process"]);
374
#var_dump(__LINE__,$proc["content"][0]["process"]);
375
 
375
 
376
#如果有 $proc["process"]
376
#如果有 $proc["process"]
377
if(isset($proc["content"][0]["process"])){
377
if(isset($proc["content"][0]["process"])){
378
 
378
 
379
	#結束 clientCacheDaemon.php 
379
	#結束 clientCacheDaemon.php
380
	$clientCacheDaemonStatusCode = proc_close($proc["content"][0]["process"]);
380
	$clientCacheDaemonStatusCode = proc_close($proc["content"][0]["process"]);
381
 
381
 
382
	#debug
382
	#debug
383
	#var_dump(__LINE__,$clientCacheDaemonStatusCode);exit;
383
	#var_dump(__LINE__,$clientCacheDaemonStatusCode);exit;
384
 
384
 
Line 388... Line 388...
388
		#提示 clientCacheDaemon.php 未正常結束
388
		#提示 clientCacheDaemon.php 未正常結束
389
		echo "clientCacheDaemon.php 未正常結束(".$clientCacheDaemonStatusCode.")".PHP_EOL;
389
		echo "clientCacheDaemon.php 未正常結束(".$clientCacheDaemonStatusCode.")".PHP_EOL;
390
 
390
 
391
		#如果有 $clientCacheDaemonStdOutput
391
		#如果有 $clientCacheDaemonStdOutput
392
		if(isset($clientCacheDaemonStdOutput)){
392
		if(isset($clientCacheDaemonStdOutput)){
393
		
393
 
394
			#提示 clientCacheDaemon.php 的標準輸出內容
394
			#提示 clientCacheDaemon.php 的標準輸出內容
395
			echo "clientCacheDaemon.php 的標準輸出內容:".PHP_EOL.$clientCacheDaemonStdOutput.PHP_EOL;
395
			echo "clientCacheDaemon.php 的標準輸出內容:".PHP_EOL.$clientCacheDaemonStdOutput.PHP_EOL;
396
		
396
 
397
			}#if end
397
			}#if end
398
 
398
 
399
		#如果有 $clientCacheDaemonErrorOutput
399
		#如果有 $clientCacheDaemonErrorOutput
400
		if(isset($clientCacheDaemonErrorOutput)){
400
		if(isset($clientCacheDaemonErrorOutput)){
401
		
401
 
402
			#提示 clientCacheDaemon.php 的錯誤輸出內容
402
			#提示 clientCacheDaemon.php 的錯誤輸出內容
403
			echo "clientCacheDaemon.php 的錯誤輸出內容:".PHP_EOL.$clientCacheDaemonErrorOutput.PHP_EOL;
403
			echo "clientCacheDaemon.php 的錯誤輸出內容:".PHP_EOL.$clientCacheDaemonErrorOutput.PHP_EOL;
404
		
404
 
405
			}#if end
405
			}#if end
406
 
406
 
407
		#debug
407
		#debug
408
		var_dump(__LINE__,$clientCacheDaemonStatusCode);
408
		var_dump(__LINE__,$clientCacheDaemonStatusCode);
409
 
409
 
Line 427... Line 427...
427
		exit(1);
427
		exit(1);
428
 
428
 
429
		}#if end
429
		}#if end
430
 
430
 
431
	}#foreach end
431
	}#foreach end
432
	
432
 
433
#印出結果
433
#印出結果
434
var_dump($configGot);
434
var_dump($configGot);
435
 
435
 
436
?>
-
 
437
436
?>
-
 
437