Author Topic: moving data folder to a sub-domain ??  (Read 3459 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
moving data folder to a sub-domain ??
« on: December 19, 2010, 09:18:29 PM »
Hi All -
          After a long time.. I came up with one more question.. :)

 I would like to move my data folder to a subdomain ( cookie less domain ).

For example now 4image is generating all relative paths to my images.. like   ./data/thumbnails/91/xyz.jpg   

Is it possible to change this image path to something like http://media.domainname.com/thumbnails/91/xyz.jpg ?



Any help or suggestion will be very helpful .. 

Thank you
batu544

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: moving data folder to a sub-domain ??
« Reply #1 on: December 19, 2010, 10:47:35 PM »
Hi,

change them all together via db, it's nothing else then a remote image url.
If you keep the directory structure i think it must be possible to change them
in a row via sql command from media_file to remote_media_file while adding
the front of the absolute path.

Maybe you have to do something else before so if you try have db backup
and only rename the source data folder for testing (before you delete it).

I don't know the proper sql command (i hate sql) maybe one of the elite guys
can give u a hint.


Greetz X23

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: moving data folder to a sub-domain ??
« Reply #2 on: December 20, 2010, 09:45:34 AM »
Thank x23piracy.. !! but, if we will follow your method.. then each time we add a new picture,then we need to update the DB manually..

V@no.. Do you have any suggestions on this ??

 
Thank you
batu544