Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

replaced http://de2.php.net with https://www.php.net
Source Link

IMHO the easiest way to debug PHP with a non-PHP-IDE is establishing an external logfile.

In your .htaccess you can specify something like

php_value display_errors 1
php_value error_reporting 2147483647
php_value error_log /var/log/php/php_error.log

Make sure this file is writable for your webserver/php process. Withing your code you can simply use the method error_log error_log to log stuff into your file.

IMHO the easiest way to debug PHP with a non-PHP-IDE is establishing an external logfile.

In your .htaccess you can specify something like

php_value display_errors 1
php_value error_reporting 2147483647
php_value error_log /var/log/php/php_error.log

Make sure this file is writable for your webserver/php process. Withing your code you can simply use the method error_log to log stuff into your file.

IMHO the easiest way to debug PHP with a non-PHP-IDE is establishing an external logfile.

In your .htaccess you can specify something like

php_value display_errors 1
php_value error_reporting 2147483647
php_value error_log /var/log/php/php_error.log

Make sure this file is writable for your webserver/php process. Withing your code you can simply use the method error_log to log stuff into your file.

Source Link
Robert Heine
  • 1.8k
  • 4
  • 31
  • 61

IMHO the easiest way to debug PHP with a non-PHP-IDE is establishing an external logfile.

In your .htaccess you can specify something like

php_value display_errors 1
php_value error_reporting 2147483647
php_value error_log /var/log/php/php_error.log

Make sure this file is writable for your webserver/php process. Withing your code you can simply use the method error_log to log stuff into your file.

lang-php

AltStyle によって変換されたページ (->オリジナル) /