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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php