[geeklog-devel] Strange storage of strings (and other data) in gl_conf_values
Jessica.Blank at mtvnmix.com
Mon Mar 3 14:54:52 EST 2008
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
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. :/
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Joe
Sent: Monday, March 03, 2008 1:45 PM
To: Geeklog Development
Subject: Re: [geeklog-devel] Strange storage of strings (and other data)
At 01:14 PM 3/3/2008, Blank, Jessica wrote:
> 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. 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.
Throwing Dice Games
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
More information about the geeklog-devel