[wp-hackers] WP Development & Production Sites

Peter Westwood peter.westwood at ftwr.co.uk
Mon Nov 29 09:47:48 UTC 2010


On 29 Nov 2010, at 09:36, Ryan Bilesky wrote:

> What is the problem with storing relative URL's from the WP root in the
> database, then have a contant in wp-config to store the site URL and when
> called upon prepend the relative path with the site URL constant from
> wp-config?  Does PHP really take a lot of processing to combine two
> strings?  This way you move you site for whatever reason, you found a better
> URL you like, or you're moving from stating to production, all it takes is a
> simple change in wp-config.

How are you going to find the URL fragments that need prepending?

That is what takes all the unnecessary processing

Cheers
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list