Reply to Re: [PHP] need for $_POST[''] changed after server upgrade

Your name:

Reply:


Posted by Robert Cummings on 10/16/23 11:34

On Tue, 2005-12-13 at 00:31, Michael Hulse wrote:
> On Dec 12, 2005, at 9:26 PM, matt@criticalcode.com wrote:
> > The only problem I see with this is now you are asking php to issue a
> > count on the $_REQUEST array, this could take some time depending on
> > your
> > form size.
>
> Ah, very good point... did not think of that. :)

That shouldn't be an issue. I'm quite sure PHP doesn't traverse the
array to count the elements, but rather already knows the size by virtue
of housekeeping when elements are added or removed. Either way it would
be the copy process that would be heaviest but since PHP uses a
copy-on-write system of variable copying, the expense is mitigated until
such time as the value copied changes in one of the lightweight copies
at which time a real copy occurs.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[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

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