How to comment out in your config file [Deleted]

Adam Howard

Well-known member
Adam Howard submitted a new resource:

How to comment out in your config file - The proper way to comment out content in PHP

I am making a 'guide' on this because I have seen far to many people use the incorrect method of commenting out things in their config.php file.

The proper way to comment out something in your config.php is to use
PHP:
//
And not
PHP:
<xen:comment>
</xen:comment>
The correct method (example)
PHP:
<?php
// $config['enableListeners'] = false;
// $config['debug'] = 1;
// ini_set('display_errors', true);
$config['db']['host'] = 'localhost';...

Read more about this resource...
 
IF you really want to get 'fancy' and just feel "better" wrapping things around :rolleyes:
PHP:
/*   */
This will work as well, but it's really not necessary for a simple config file.

This at the start of the line that you wish to comment out should be more than enough.
PHP:
//
 
Top Bottom