Slowing down a script?

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

qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

i see alot of str_replace in there..just saying, thats all, its maybe better to make a template function/class to handle those replaces, just makes it easier to manage :wink:

more data means slower output from php, beacuse it takes times to find the data, well mysql does lol but you know what i mean :P.

just make sure you use "full index" feature in mysql, you can find it next to most field names in phpmyadmin, just click on it, with that (from what i heard),it makes it faster to search...although i am not sure about it, maybe sami or someone else can put some more light on it.

your database has to be fairy big in order to slow it down, i currently have over 17,000 records in a client's site, running just fine with, takes less 1 - 4secs to output, depending on what is being outout.
Post Reply