You are here: Re: One variable for all the website pages « All PHP « IT news, forums, messages
Re: One variable for all the website pages

Posted by Charlie on 10/11/35 11:59

On Mon, 18 Sep 2006 12:00:28 +0200, moi wrote...
>
>Hello,
>
>I am designing a website for a freeware and because the version of the
>freeware changes often I would like to have one PHP variable containing
>the version number. This way I could change the variable in one place and
>have all the pages updated in one go.
>
>How can I do that? I do not know where to start :-( (I am a PHP beginner)
>
>Thank you for your help.
>

One way may be to define the variable in a separate file, and use an include
statement on any of your pages that need it.

Charlie
--
Help a Community by Participating in Ours
We donate your subscription fees to the charity you choose
100% of your first month, 10% thereafter.
http://newsguy.com/charity.asp

 

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

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