28, May 2012

best performance? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: best performance?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: best performance?  (Read 2394 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« on: Sep 13, 2007, 10:15:09 pm »

I have some very busy topsite and the button on this busy sites is generating some nice load.

Since I rank the sites based on the inbound clicks I don't need the button impression count.

now my problem, because there are ~500 websites using the the link to the button I need to do something.

at the moment I use some php file function to show only the image through the button script. It looks like that server load is lower since I use it this way (no more database transactions inside the button script).

I sit maybe better/faster to redirect the button request to the button image via mod_rewrite?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Sep 13, 2007, 11:20:42 pm »

No. Redirect it through php Smiley

php is faster than mod_rewrite, plus this way bots wont load your server.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 13, 2007, 11:44:11 pm »

No. Redirect it through php Smiley

php is faster than mod_rewrite, plus this way bots wont load your server.

Huh
<?php
header("Location: button.png");
exit;
?>

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Sep 14, 2007, 10:18:18 am »

Right, but location headers should have complete urls (http://.....)

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Sep 14, 2007, 10:26:31 am »

Right, but location headers should have complete urls (http://.....)

ok thanks
do I need to add a content header too?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Sep 14, 2007, 11:06:27 am »

No. In fact it would be wrong to add one, as the location header indicates that there is no content in this page Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Sep 14, 2007, 11:16:56 am »

No. In fact it would be wrong to add one, as the location header indicates that there is no content in this page Smiley
ok clear Smiley

the good news is that the server has still 220-250 threads but is fast as always (again)

Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Sep 14, 2007, 11:17:45 am »

i think the best thing is to use only text links and not the button anymore Smiley

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7105
Tags : rewrite script Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: best performance?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 09:22:17 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.