Một số site viết bằng PHP bị lỗi internal server error 500 nhưng ko hiển thị chi tiết lỗi mà chỉ hiển thị chung chung " internal server error 500" hoặc ra trang trắng
Để hiển thị chi tiết
thêm
vào đầu của fileMã:error_reporting(E_ALL); ini_set('display_errors', '1');
hoặc edit trong php.ini
Mã:error_reporting = E_ALL & E_STRICT display_errors = On display_startup_errors = On