Re: __halt_compiler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux