  | 
		 		   | 
	  	    
          
            
			
	
			
			 
                จะสร้าง error_log ของ คำสั่ง PHP เพื่อจะได้ตรวจสอบว่า ปัญหาเกิดจากอะไร แต่กลับมี error และอยากทราบว่า error ที่เราสร้างมาเพื่อ Log ดูจะสามารเปิดดูได้จากหน้า screen ที่ capture มา ณ ที่นี้หรือไม่ 
 
Code (PHP) 
<?php
ini_set(‘error_log’,’/var/log/myother.log’);
echo ‘error_log = ‘ . ini_get(‘error_log’) . “\n”;
error_log(“This is error_log #0”, 0);
error_log(“This is error_log #1”, 1, “[email protected]”, “Subject: Message Type #1\n”);
error_log(“This is error_log #3”, 3, “/var/log/mytest.log”);
error_log(“This is error_log #4”, 4);
?>
  
  
 
อยากเรียนถามว่า หากสร้าง file Error สำเร็จ จะสามารถดูได้จาก หน้า screen ที่ส่งมาหรือไม่ 
 
 
 
 
  Tag : PHP, MySQL, JavaScript, Apache, XAMPP               
                        | 
           
          
            | 
			
                             | 
           
          
            
              
                   | 
                   | 
                   | 
               
              
                   | 
                
                    
                      | Date :
                          2018-11-10 17:21:03 | 
                      By :
                          494384544414604 | 
                      View :
                          739 | 
                      Reply :
                          2 | 
                     
                  | 
                   | 
               
              
                   | 
                   | 
                   | 
               
              | 
           
          
            | 
			 | 
           
         
	    
		             | 
		
			  |