View Single Post
Unread 01-14-2008, 07:45 PM
GabrielP GabrielP is offline
Junior Member
Join Date: Jan 2008
Location: Argentina
Posts: 7
Thumbs up

Originally Posted by Admin View Post
So, to better understand what you want to do...

It looks like you want to be able to pass a variable in your <link> tag that will tell your server-side code what configuration to load? If that's the case, then I think you've got it right.

Oh thank you!

Yes, I want to do that. What happened is that in the Developer Manual the name used for the second config file is "config.ini". Then, in the syntax the word "config" appears and one doesn't know if it is a php command or the name of the .ini file, got my point?

Look at the example in the Developer Manual:

<link rel="stylesheet" type="text/css" media="screen,projection"
href="/udm-resources/udm-style.php?config=<?php echo($config); ?>" />


<script type="text/javascript"
src="/udm-resources/udm-dom.php?config=<?php echo($config); ?>"></script>

While I, as a non-php dev, can guess that the $config refers to the name of config.ini, the first "config" (in "config=<...") made me confused. Is it a command or the name of the file, I thought to myself? That's why I called it santaclaus.ini in my first post in order to remark "where" my doubt was. As that name sounded "too funny" and my post might be taken as a joke, I decided to replace it with "udm-custom2" (more formal ).

Thanks for your help, friend.

Last edited by GabrielP : 01-14-2008 at 07:48 PM.
Reply With Quote