| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Useful: imagepaths after moving server | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Useful: imagepaths after moving server
Hi,
I had to move one of our X-cart site to a new server. We use the filesystem to store images, not the database. I noticed that X-cart saves the whole path info for every image stored in the database. I wrote a very small but useful script for anyone that wants to change the path info for all images at one time: Code:
Replace all the %% %% with your own values. It's not very handy to store the full path into the database, but it hope it helps for some people! Good luck. John. |
|||||||
#2
|
|||||||
|
|||||||
Very useful.
__________________
ex x-cart guru |
|||||||
#3
|
|||||||
|
|||||||
Image path change xcart 4.0.2
I am only a couple of weeks into using x-cart. Tried to move the store to another location, and lost all of the image links. When I used the above code the "\"s were dropped from the path string during the update.
I was however able to make this sql statement work: Code:
dirA = original directory: c:\inetpub\wwwroot\xcart\files\images..... dirB = new directory: c:\inetpub\wwwroot\backup\files\images.... Only include what needs to be changed: (image_path, 'xcart', 'backup') Hope this helps....
__________________
Tyson McPherson X-Cart version 4.1.8 PHP 4.3.9 MySQL server 4.1.12-log MySQL client 4.1.12 Web server Apache/2.0.52 (Red Hat) Operation system Red Hat 3.4.6-2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|