⊗dpPPAdEL 23 of 27 menu

Logging PHP Errors on VS

Let's now set it up so that PHP errors are output to a special file on the hosting. In case of problems, you can open this file via FTP and check if there are any errors there.

To do this, we will use the setting log_errors. By default, it causes errors to be output to a file named error_log (without an extension). Let's enable this setting:

<?php ini_set('display_errors', 'off'); ini_set('log_errors', 'on'); echo $test; ?>

Enable error output to a file.

Intentionally create an error. Make sure it appears in the file.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline