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 Johnny on 10/11/21 11:58

"moi" <nospam@nospam.com> wrote in message
news:op.tf2je2aa56icx3@chris-4ac6688f6...
> 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.
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

start here: http://us3.php.net/global and all the many other helpful pages
there.

there are many ways to do what you want.
Another way would be to define a constant in an initialisation file
http://us3.php.net/manual/en/function.define.php

 

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

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