Customizing SMF > SMF Coding Discussion
smf and PHP ads: separate or coupled dBase?
(1/1)
7summits:
When testing SMF I noticed that when I add a simple text ad to the tempate using PhpAdsnew that the load/create time almost doubles.
I have the data at for phpads and SMF stored in 2 separate MySql dbases, is this optimal or is it better to have as much tables as possible in the same dBase for speed?
[Unknown]:
We do phpAdsNew here, but it's using somewhat tweaked PHP code.
If you use an include with a URL, it will be much much slower.
-[Unknown]
7summits:
Ah, but does it make any difference if the tables are on different dbases or does that not matter at all?
Ash Severns:
Since this is sorta on the subject, how do you make the ads show up on webpages? I can't find the answer anywhere.
Yea, I know, i'm an idiot.
[Unknown]:
It's using separate databases here, but both are persistent connections.
You just copy the code phpAdsNew gives you into the template, but change <?php --- ?> to '; --- echo '
-[Unknown]
Navigation
[0] Message Index
Go to full version