[geeklog-devel] Strange storage of strings (and other data) in gl_conf_values

Mark R. Evans mevans at ecsnet.com
Mon Mar 3 15:01:36 EST 2008


Jessica,

Look for the neat new link under Admins Only called Configuration.  From
there, you can change it all!

Thanks!
Mark

On Mon, Mar 3, 2008 at 1:54 PM, Blank, Jessica <Jessica.Blank at mtvnmix.com>
wrote:

> Ja, and I was trying to do just this. However, this sort of thing used
> to go in 'config.php'... And, well, I don't know any way to change it
> now.
>
> See, the default site name is 'Another Nifty Geeklog Site' and, well....
> I did a recursive grep for this string, and couldn't find any new .php
> file where this string existed.
>
> So, if I'm not supposed to change it in the database, if I'm supposed to
> change it via $_CONF... Then where am I supposed to change it? And
> please don't say "public_html/siteconfig.php"; this file says, right at
> the top, "You should not need to edit this file. See the installation
> instructions for details".
>
> Said installation instructions still reference config.php, which is no
> longer being used...
>
> So I have no idea where I'm SUPPOSED to change these settings, if not by
> manually changing them in the database. :/
>
> --Jessica
>
> -----Original Message-----
> From: geeklog-devel-bounces at lists.geeklog.net
> [mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Joe
> Mucchiello
> Sent: Monday, March 03, 2008 1:45 PM
> To: Geeklog Development
> Subject: Re: [geeklog-devel] Strange storage of strings (and other data)
> in gl_conf_values
>
> At 01:14 PM 3/3/2008, Blank, Jessica wrote:
> >Hello gang:
> >
> >         I am working to port my LDAP authentication class to the
> > latest (as of today, Monday, 3/3/2008) CVS version of geeklog. In the
> > process, I noticed something odd in the database. In gl_conf_values,
> > strings aren't stored as 'foo', they're stored like 's:3:"foo";',
> > where 3 is the length of the string 'foo'.
> >
> >         Why is this done? It seems unnecessary. Can't the length of a
> > string be determined with a simple strlen()?
>
> gl_conf_values can store anything so everything is serialize'd before
> storage[1]. You should not do any queries against gl_conf_values. You
> should be using $_CONF['whatever'] to reference configuration data like
> you do in 1.4.1.
>
> [1] http://us2.php.net/manual/en/function.serialize.php
>
>
> ----
> Joe Mucchiello
> Throwing Dice Games
> http://www.throwingdice.com
>
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20080303/48b58f11/attachment.html>


More information about the geeklog-devel mailing list