You are here: Re: Executed only once and used across all pages « PHP Programming Language « IT news, forums, messages
Re: Executed only once and used across all pages

Posted by flamer die.spam@hotmail.com on 10/16/06 02:09

DarkPilgrim@gmail.com wrote:

> I'm a bit new to PHP and there is something I'm not sure whether PHP
> can grant.
> Given my web application has some codes that only need to be executed
> once(eg.configuration used over the whole site), but every php script
> which needs that config seems to execute that once to get configuration
> when a request comes.
> Is there any mechanism that can make a script processed only once and
> all other pages can use its output?
> (Maybe this is impossible,but I just want to get a definite answer.)
> Thx in advance!

it is normal practise to have one config file that is included in
whatever other scripts need it, thats the method i would recommend, if
the scripts were large and performance was on your mind, then you could
just write the outputs to a flat file and include that into your php
scripts, less work for php but more work for the coder.

Flamer.

 

Navigation:

[Reply to this 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

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