help me my forums are slow

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

help me my forums are slow

Post by gaogier »

my forums are taking forever to load, some pages take upto 10mins, but why, what can i do?
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Profile them.

Ie You'll want to stick calls to microtime() in various places in the code to see where the time is being spent.

Typical places for calls to microtime:
Absolute beginning of script
After all includes
After making your DB connection
Absolute end of script
Before/after any calls to "big" functions
before/after any big query

Once you know where the time is being spent, we can help figuring out ways to optimize it.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

the porblem was that the version of the foums was really old, so i have upgraded and noow its fast but all our mods have gone

how can i upgrade them?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

What kind of forums are you using? PHP-NUKE forums? or phpbb
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

phpbb


i have to reinstall all the mods, and i dont have a clue what im doing
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

gaogier wrote:i have to reinstall all the mods, and i dont have a clue what im doing
What have you done so far in your quest for help?

If these mods are just standard ones provided by the phpBB developers then try http://phpbb.com for help - otherwise you'll need to find the person who originally installed the mods.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

and get him to update them?

i have asked and they said to reply to the topic asking for the lastest addition, but that will mean reinstalling it wont it? is there away to just change the script myself and it will work with the lastest version?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

gaogier wrote:and get him to update them?

i have asked and they said to reply to the topic asking for the lastest addition, but that will mean reinstalling it wont it? is there away to just change the script myself and it will work with the lastest version?
That question would be nearly impossible to answer, as we don't know how your scripts are currently said up, what you want them to do, and/or what you want to change.

Reading the PHPBB documentation would be your best bet. They most likely have a FAQ for questions such as yours.

http://www.phpbb.com/support/ seems to have loads of documentation for your type of question. If you can't find the answer, you could always email them.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

i was their 2, but the slowness of the forums has been fixed
Post Reply