Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2008, 10:13 PM   #1 (permalink)
Newb Techie
 
Join Date: Jul 2008
Posts: 30
Default Removing PHP For Increased Download Speed

I read that removing PHP from the <head> can increase download speed.I know very little about PHP, enough to wreck my website. I hear PHP can be overused and that websites load faster with less PHP in the <head>.

Can the PHP in this line be reduced to non PHP? I wouldn't think so because it appears to be a formula for finding the titles of the different pages of the website.
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

This line
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> I would think can be reduced by changing "<?php bloginfo('stylesheet_url'); ?>" to the address of the CSS page (ie www.mysite.com/mycss.css) , so long as all the pages use the same CSS page.

This line
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> Can't I just change this to
<meta name="generator"content="WordPress 2.5.1" /> and change the versio as I update?

This line
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> I have no idea what this line does and if it can be changed to non PHP.

This line is also in the <head>.
<?php wp_get_archives('type=monthly&format=link'); ?>
What is it for?, although it doen't look like it can be reduced to no PHP

Thanks Much
Rex100 is offline   Reply With Quote
Old 07-20-2008, 11:49 PM   #2 (permalink)
Every Kudo = 1 Puppy Dead
 
zedman3d's Avatar
 
Join Date: Oct 2007
Posts: 1,192
Default Re: Removing PHP For Increased Download Speed

There is really no point IMO, even if it did slow it down, it would be in the milliseconds. And yes, you do need that PHP.

Infact, they want to phase out HTML and just use PHP in the future.
__________________


My pick up line is: I know Vernong.
Trotter: "Ask all the questions you want... whatever we don't know, we'll make
up something that sounds pretty good."


Last edited by zedman3d; 07-21-2008 at 12:00 AM.
zedman3d is offline   Reply With Quote
Old 07-21-2008, 06:45 AM   #3 (permalink)
T.F's Resident Cool Guy..
 
Tkey's Avatar
 
Join Date: Aug 2006
Location: Non-specific :)
Posts: 1,467
Send a message via AIM to Tkey Send a message via MSN to Tkey Send a message via Yahoo to Tkey Send a message via Skype™ to Tkey
Default Re: Removing PHP For Increased Download Speed

PHP is executed server side not client side. Due to the speed in which servers can process this infomation (like zedman3d said) it would only account for a few miliseconds.
It is really not worth the fuss ;

Cheers,

~ Tkey
__________________
I'm A Web Designer
PM me for T.F rates - (as little as £65!)
Tkey is offline   Reply With Quote
Old 07-21-2008, 09:20 AM   #4 (permalink)
Newb Techie
 
Join Date: Jul 2008
Posts: 30
Default Re: Removing PHP For Increased Download Speed

This site is why I asked this question
WordPress template optimization - Speed up WordPress

When the server is busy, I would think fewer runs to the site's database(s) would get faster download times.

Thanks,

Rex
Rex100 is offline   Reply With Quote
Old 07-21-2008, 03:49 PM   #5 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,941
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Removing PHP For Increased Download Speed

It doesn't matter where you put the PHP, it is all parsed before HTML.
__________________

Need website help? PM me!
CrazeD is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Torrent upload speed effect download? enigm@tic Browser & General Internet Questions 5 07-26-2008 12:04 AM
Bandwidth Speed Problems. KoopaxStar Computer Networking & Internet Access 1 06-21-2008 02:14 PM
Random Download Speed Spikes ? Oreo Browser & General Internet Questions 10 04-02-2008 08:06 PM
Download Speed smileii Browser & General Internet Questions 1 10-15-2007 05:28 AM
Limit http download speed. ncjimn Computer Networking & Internet Access 2 09-08-2007 03:54 PM


All times are GMT -5. The time now is 10:08 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0