Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Re: mailinglist status: msg#00005

cms.phpslash.devel

Subject: Re: Re: mailinglist status


On Fri, May 02, 2003 at 07:55:42PM -0400, Luis M wrote:
> >How about this?
> >
> >$extra_ary = '';
> >// Are there extra tags/variables to pass to slashHead.tpl?
> >if(is_array($_PSL['extra_ary'])) {
> > $extra_ary = $_PSL['extra_ary'];
> >}
> >
> >$header = getHeader($pagetitle,$_PSL['metatags'], $extra_ary);
> >
> >Then it could be defined in config.ini, config.php, or in the
> >script. But couldn't come from the url.
> >
> That sounds perfect. But how would the "extra_ary" be defined in the .ini ?
> This way:
>
> extra_ary = KEY=>'value', KEY2=>'value2', ..., KEYn=>'valuen'
>
> ?? just curious...

Sorry, forgot about this.

This would create the array -

at the END of the ini file:

[extra_ary]
key1 = value1
key2 = value2
key3 = value3

However, I'm not sure why you wouldn't just put the values in the
template file.

Joe

Well, the .ini can give sort of a "default" value for certain user-defined variables for the templates (sort of "place holders") and then the user might develop her/his own modules/scripts/functions to generate data for those place holders during the page "execution" (when people visit the site). Sort of what I'm doing to get banners for the accplusli.com site.

$ary['IMAGES']=random_image("banners.txt");

slashHead($foo,$bar,$ary);

...
etc...


----)(-----
Luis Mondesi
System Administrator
LatinoMixed.com

lemsx1-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx

"...The Mac does this so smoothly, it feels like an extension of your mind." - Paula Speer, MacWorld Magazine 2003-04

Public signature: http://www.latinomixed.com/lems1/public-a.asc

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation