[wp-hackers] siteurl and home should not be in the mysql database

Matt speedboxer at gmail.com
Sun Jun 17 06:53:26 GMT 2007


Well, it's the best of both worlds. You can override the settings in the
database by defining siteurl and home in wp-config.php. So, if you don't
want the settings to be in the DB, put them in the config file.

:D


On 6/16/07, Gali <galeenet at gmail.com> wrote:
>
> Thanks for all you SQL tricks about changing the options after an import.
> That's NOT what I was looking for (and NOT what you should be doing, btw).
>
> On a SQL export, I want to move the content, not the meta data.
>
> Computer Guru showed the best solution, by putting the option in a
> file (like OsCommerce - ok, not a coding reference :D)
>
> Excluding MU users I see no interest in keeping this option in the db.
>
> Stephen : I thought about it too { for the db settings... if
> ($_server[path] == localhost) then... else...() }
>
> 2007/6/16, Stephen Rider <wp-hackers at striderweb.com>:
> >
> > On Jun 15, 2007, at 8:38 AM, Paul Menard wrote:
> >
> > > I agree and question why WP needs to store the full URL instead of
> > > building it dynamic when needed. Seems  that storing the relative
> > > URL path and appending the host part would make this easier.
> >
> > I've wondered about this myself.  Is reading the string out of the
> > database faster than getting the current domain/path via PHP?  I
> > can't see any reason for this to be in the database - I'm sure there
> > was a decision behind it, but I'm curious.
> >
> > Wouldn't it be easier to set a constant from the index.php file?
> >
> > Stephen Rider
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Matt (speedboxer at gmail.com)
http://mattsblog.ca/ | http://livemp.net/


More information about the wp-hackers mailing list