Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Will this slow down my site?
Old 11-02-2006, 12:52 PM Will this slow down my site?
Yak Yak Yak Yak Yak

Posts: 593
Location: Rochester, MN
Trades: 0
I want to remove the header and footer from my site when MY SPIDER comes through to index the content (not other spiders, just my own). Since the header and footer have alot of text, I think cutting that out will reduce the size of my search database, make indexing faster, and speed up searches.

So, here is my question. If I do something like this, will it slow down my site?

$agent=getenv("HTTP_user_agent");
if agent != "mybot";
include (header);
else
echo "";

I realize the synax is not correct, but is the concept sound? I want to make sure that this will not slow down the site for real visitors, or other bots.

My search script has an option to "ignore" certain content inside special tags, but it still puts that content in the database. As the database grows, I think that extra unused content will slow down the serving of results.

Any opinions on this?

Frank
__________________

Please login or register to view this content. Registration is FREE
neorunner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2006, 09:33 AM Re: Will this slow down my site?
Average Talker

Latest Blog Post:
5000 Web Directories
Posts: 15
Trades: 0
I think the answer's no. Tons of site does that, even this forum (vBulletin) have tons of conditional statements. I believe it will do no harm.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
j4s0n is offline
Reply With Quote
View Public Profile Visit j4s0n's homepage!
 
Old 11-03-2006, 11:18 AM Re: Will this slow down my site?
Spiros's Avatar
Experienced Talker

Posts: 40
Name: Spyros
Location: Athens, Hellas
Trades: 0
No, it won't. What will slow down your site (at least the searcg page) is not adding this. You don't want half of your db being filled with junk data, eh?
Spiros is offline
Reply With Quote
View Public Profile
 
Old 11-03-2006, 11:43 AM Re: Will this slow down my site?
dan_ish's Avatar
Novice Talker

Posts: 11
Name: Danish
Trades: 0
The text will not effect your site.
Nowadays, people prefer CSS than other scripts
__________________

Please login or register to view this content. Registration is FREE
| Checking Your IP Is Our Business
dan_ish is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Will this slow down my site?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71145 seconds with 12 queries