Reply to Re: Re-opening a file

Your name:

Reply:


Posted by Andy Jeffries on 07/17/07 08:47

On Sun, 15 Jul 2007 11:28:18 -0700, W Marsh wrote:
> Now, I can't believe how badly you are missing the point! Do you
> really, honestly, truthfully believe that a language like PHP should
> only be usable by somebody who has spent a long time reading sprawling
> documentation, when perhaps the only need to use it as a tool for a
> small job?

I believe when anyone is doing programming they shouldn't use a language
construct until they've seen the declaration to make sure they've got the
parameters correct.

The parameters for define are:

bool define ( string $name, mixed $value [, bool $case_insensitive] )

Therefore the first parameter should be a string not a defined constant.
The fact that PHP helps programmers by returning the string equivalent of
an undefined constant doesn't make it correct to call a function without
an idea of what the parameters are supposed to be.

Regards,


Andy

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация