Re: __halt_compiler()

From: Date: Mon, 17 Mar 2008 12:48:32 +0000
Subject: Re: __halt_compiler()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271683@lists.php.net to get a copy of this message
Casey wrote:
Hi list! __halt_compiler(). Does anyone use it? I've used it obsessively in my past two "projects" to store data (specifically CSV) in the PHP files. These two "projects" consisted of only one file, and I didn't want to clutter everything and involve databases and/or XML files. Your thoughts? -Casey
(Apologies for not sending this to the list) I personally think that keeping your data in the same file as your code is asking for trouble further down the line. Of course, YMMV and it is all personal taste (before the flames start) but what is the problem with opening and parsing a CSV file in your script? That way your code is more modular and a lot easier to understand for other developers. Mikey

« previous php.general (#271683) next »