SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict amitjoshi's Avatar
    Join Date
    Jul 2005
    Location
    Oklahoma, USA
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does PHP code makes any difference?

    Does PHP code makes any difference in terms of optimizations?

    Is writing the content text directly in the HTML better than doing <?php echo $my_contents; ?>

    Amit

  2. #2
    SitePoint Wizard bronze trophy hooperman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    4,301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't matter which server side technology drives your site - it's the generated html that gets read by search engines.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,003
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    hard code or PHP?

    Search engines don't see the PHP code, they see the mark-up it outputs. Where the optimzation comes in is not with SEO, but with server resources. eg.
    HTML Code:
    <title>About</title>
    does not utilize the PHP parser
    PHP Code:
    <title><? echo $page_title?></title>
    does, and
    PHP Code:
    <title><? return_page_title($this_page); ?></title>
    might be a function that makes a database call.
    I imagine in most cases the cost in resources is acceptable, but it's still something to think about.

  4. #4
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    From the Search Engine Optimization FAQ:

    What happens if I use includes for my pages? Will the search engines see them?

    The search engines don't care about what server side technology you use. All they see is the (x)HTML your server side code generates. To see what they see simply load your page in your favorite web browser and then view the source. What you see is exactly what they see.

  5. #5
    SitePoint Addict amitjoshi's Avatar
    Join Date
    Jul 2005
    Location
    Oklahoma, USA
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys. Appreciated.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •