Welcome to WebmasterWorld Guest from 18.205.176.85

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Ad Control through script

Ad Control through script

     
7:44 am on Sep 28, 2005 (gmt 0)

New User

10+ Year Member

joined:Sept 3, 2005
posts:21
votes: 0


I would appreciate your advice on the following problem:

Situation-Running Website through Drupal CMS connecting to a Mysql database on another server. Noticed a slight time lag in page loading possibly due to database being on another server, running CMS and using shared hosting.

Objective-Want to serve two different ads and minimize any extra time lag in page loading or ad serving.

Option 1(if possible)-Creating a small php or javascript, something like this:
if ip="a.a.a.a" serve ad <a href>Matching</a>
if ip is not equal to "a.a.a.a." serve ad <a href>Not Matching</a>

Option 2-use some pre-built script like phpadsnew which would require using another database for ad serving. Phpadsnew has some good options for targeting but I am concerned if this may slow the pages and ads especially for users not having high speed internet access.

Please provide your opinion and if possible an example of option 1 or should I just go with option 2.

12:21 am on Sept 29, 2005 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Welcome to WebmasterWorld, tophat.


Objective-Want to serve two different ads and minimize any extra time lag in page loading or ad serving.

Why use a remote MySQL server? If possible, use the localhost or at least a server on the same local network. That should help tremendously. Serving up the HTML and images for an ad or two shouldn't be too terribly lag anyway, even for a remote database server. Also, shared hosting in and of itself is going to be an issue long term if performance is desired. Shared hosting = packing as many sites on a single server as possible without too terrible performance. That's how the money is made.

5:11 am on Sept 29, 2005 (gmt 0)

New User

10+ Year Member

joined:Sept 3, 2005
posts:21
votes: 0


Thanks. My choice for the database server is limited because it is provided by the hosting company. Perhaps in a couple of months time I will switch to another company if performance does not improve.

I am not sure but the slow speed of page loading(about 11s on my high speed connection got me worrying), could also be due to not having caching on, on the CMS test site, and maybe because I am moving the site from static html pages with no database(about 2.5s for page load) to the php Drupal. Also I am not sure if the pages of the test site not yet being cached by the ISPs is a contributing factor.

However I will go ahead with the phpadsnew installation and see how it goes.