PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > __halt_compiler()
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
__halt_compiler()

Réponse
 
LinkBack Outils de la discussion
Vieux 16/03/2008, 21h18   #1
Casey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut __halt_compiler()

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
  Réponse avec citation
Vieux 17/03/2008, 13h48   #2
Mikey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: __halt_compiler()

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
  Réponse avec citation
Vieux 17/03/2008, 15h10   #3
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] __halt_compiler()

On Sun, Mar 16, 2008 at 4:18 PM, Casey <heavyccasey@gmail.com> 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?


In my opinion, if you're distributing open source scripts or the
like, and wanted to send out a really simple installer package, that
would be fine. All-in-all, you want to evaluate the scope of your
code, the knowledge level of your user base, the means by which the
code will be shared, et cetera. It's really up to your best educated
judgment on a per-project basis.

Now, the world don't move to the beat of just one drum. What
might be right for you may not be right for some: a man is born, he's
a man of means. Then along come two and they've got nothing but their
genes, but they've got Diff'rent Strokes. It takes Diff'rent Strokes.
It takes Diff'rent Strokes to move the world.

Everybody's got a special kind of story. Everybody finds their
way to shine. It don't matter that you got not a lot; so what?
They'll have theirs and you'll have yours and I'll have mine. And
together, we'll be fine! 'Cause it takes Diff'rent Strokes to move
the world.

Yes, it does, it takes Diff'rent Strokes to move the world.

--
</Daniel P. Brown>
Forensic Services, Senior Unix Engineer
1+ (570-) 362-0283
  Réponse avec citation
Vieux 17/03/2008, 16h09   #4
Shawn McKenzie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] __halt_compiler()

Daniel Brown wrote:
> On Sun, Mar 16, 2008 at 4:18 PM, Casey <heavyccasey@gmail.com> 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?

>
> In my opinion, if you're distributing open source scripts or the
> like, and wanted to send out a really simple installer package, that
> would be fine. All-in-all, you want to evaluate the scope of your
> code, the knowledge level of your user base, the means by which the
> code will be shared, et cetera. It's really up to your best educated
> judgment on a per-project basis.
>
> Now, the world don't move to the beat of just one drum. What
> might be right for you may not be right for some: a man is born, he's
> a man of means. Then along come two and they've got nothing but their
> genes, but they've got Diff'rent Strokes. It takes Diff'rent Strokes.
> It takes Diff'rent Strokes to move the world.
>
> Everybody's got a special kind of story. Everybody finds their
> way to shine. It don't matter that you got not a lot; so what?
> They'll have theirs and you'll have yours and I'll have mine. And
> together, we'll be fine! 'Cause it takes Diff'rent Strokes to move
> the world.
>
> Yes, it does, it takes Diff'rent Strokes to move the world.
>

What you talk'n about Willis?
  Réponse avec citation
Vieux 17/03/2008, 16h34   #5
Mikey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] __halt_compiler()

Shawn McKenzie wrote:
> Daniel Brown wrote:
>> On Sun, Mar 16, 2008 at 4:18 PM, Casey <heavyccasey@gmail.com> 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?

>> In my opinion, if you're distributing open source scripts or the
>> like, and wanted to send out a really simple installer package, that
>> would be fine. All-in-all, you want to evaluate the scope of your
>> code, the knowledge level of your user base, the means by which the
>> code will be shared, et cetera. It's really up to your best educated
>> judgment on a per-project basis.
>>
>> Now, the world don't move to the beat of just one drum. What
>> might be right for you may not be right for some: a man is born, he's
>> a man of means. Then along come two and they've got nothing but their
>> genes, but they've got Diff'rent Strokes. It takes Diff'rent Strokes.
>> It takes Diff'rent Strokes to move the world.
>>
>> Everybody's got a special kind of story. Everybody finds their
>> way to shine. It don't matter that you got not a lot; so what?
>> They'll have theirs and you'll have yours and I'll have mine. And
>> together, we'll be fine! 'Cause it takes Diff'rent Strokes to move
>> the world.
>>
>> Yes, it does, it takes Diff'rent Strokes to move the world.
>>

> What you talk'n about Willis?


(tugs on cheeky cheeks!)
  Réponse avec citation
Vieux 18/03/2008, 16h04   #6
Philip Thompson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] __halt_compiler()

On Mar 17, 2008, at 10:34 AM, Mikey wrote:

> Shawn McKenzie wrote:
>> Daniel Brown wrote:
>>> On Sun, Mar 16, 2008 at 4:18 PM, Casey <heavyccasey@gmail.com>
>>> 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?
>>> In my opinion, if you're distributing open source scripts or the
>>> like, and wanted to send out a really simple installer package, that
>>> would be fine. All-in-all, you want to evaluate the scope of your
>>> code, the knowledge level of your user base, the means by which the
>>> code will be shared, et cetera. It's really up to your best
>>> educated
>>> judgment on a per-project basis.
>>>
>>> Now, the world don't move to the beat of just one drum. What
>>> might be right for you may not be right for some: a man is born,
>>> he's
>>> a man of means. Then along come two and they've got nothing but
>>> their
>>> genes, but they've got Diff'rent Strokes. It takes Diff'rent
>>> Strokes.
>>> It takes Diff'rent Strokes to move the world.
>>>
>>> Everybody's got a special kind of story. Everybody finds their
>>> way to shine. It don't matter that you got not a lot; so what?
>>> They'll have theirs and you'll have yours and I'll have mine. And
>>> together, we'll be fine! 'Cause it takes Diff'rent Strokes to move
>>> the world.
>>>
>>> Yes, it does, it takes Diff'rent Strokes to move the world.
>>>

>> What you talk'n about Willis?

>
> (tugs on cheeky cheeks!)



Yeah, I wasn't sure whether I was supposed to raise my lighter or cry...

~Philip
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18932 seconds with 14 queries