Author Topic: the gallery went very slow suddenly after moving to another  (Read 6772 times)

0 Members and 1 Guest are viewing this topic.

Offline Vb2-Fan

  • Newbie
  • *
  • Posts: 21
    • View Profile
Hi all..

i recently moved to another hosting server...

i dumbed the DB and restored it with PHPMYADMIN normally with no errors.

aslo moved the whole directory and made the CHMOD stuff to the files..

but the gallery went very very slow ...
the main site is working very fast , i have a VB2 forum running php and gzip ( level 1 comp.)  and working just fine..

the 4images is aslo using (Gzip level 1 comp) but it's very slow...

another thing... the Admin panel working fast asn normall...
but the main gallery is not...

i haven't changed any thing in the script after the moving...

any help please ?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
the gallery went very slow suddenly after moving to another
« Reply #1 on: July 26, 2002, 02:10:01 PM »
Can you give us a URL?

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Mec4D

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.mec4d.com
the gallery went very slow suddenly after moving to another
« Reply #2 on: July 27, 2002, 11:14:22 PM »
I had the same problem with the gallery, my server is very fast and with 30GB of B. but the problem was on the random image, with more that 1000 files and 900 members this was really the best solution to remove the random image. Now all run very fast as the rest of the website.
Catharina

Offline trash

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://xander.mine.nu
the gallery went very slow suddenly after moving to another
« Reply #3 on: July 29, 2002, 09:23:28 AM »
As I have seen in the code is that the random image gets picked through an sql statement. (correct me if I am wrong Jan). Maybe there is a faster way to get a random image in PHP Code.

I have some experience with that when I wrote a module for the PHPNuke cms package. Maybe I can try to use a piece of that code...
:: Artificial Intelligence is no match for Natural Stupidity ::

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
the gallery went very slow suddenly after moving to another
« Reply #4 on: July 29, 2002, 09:28:52 AM »
Yes, "inspirations" are always welcome!

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Vb2-Fan

  • Newbie
  • *
  • Posts: 21
    • View Profile
the gallery went very slow suddenly after moving to another
« Reply #5 on: August 02, 2002, 12:28:00 PM »
hi guys..

guess what was the damn problem...
it's the "config.php", had a balnk lines at the end of the file  :oops:

i removed them and every thing went smoth normal and ---F-A-S-T

many thanks to Jan and his effort with me via the PMs ...

regards.

Offline Mec4D

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.mec4d.com
the gallery went very slow suddenly after moving to another
« Reply #6 on: August 02, 2002, 04:33:09 PM »
do you mean this least ?

Code: [Select]
//define('4IMAGES_ACTIVE', 1);

to

Code: [Select]
define('4IMAGES_ACTIVE', 1);

if well I made this already 2 weeks ago, my gallery is very fast.

Now I have only "slow" problem with the forum, I use the same that thise but is so slow on my website.
Catharina