1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

using PHP in a website - good or bad?

Discussion in 'HTML & Website Design' started by sc0ttish, Aug 28, 2006.

  1. #1
    Hi all,

    I'm in the process of designing a new website and planning on using alot of php includes for the header, footer and a few adsense things too.

    But before i start using it i want to make sure that google or any search engine dont mind it.

    Thanks
    sc0ttish
     
    sc0ttish, Aug 28, 2006 IP
  2. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #2
    they dont - im doing the same thing for my site
     
    Wyla, Aug 28, 2006 IP
  3. alext

    alext Active Member

    Messages:
    406
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    68
    #3
    php code is handled on your server, so the search engines can't distinguish between html and php at all. The only sign of its use will potentially be the .php extension and I do not believe that that has any effect at all.

    Just be careful not to use a lot of url data i.e.

    index.php?v=1&this=that&anotherthing=somethingelse
     
    alext, Aug 28, 2006 IP
  4. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #4
    why not? - whats wrong with that?
     
    Wyla, Aug 28, 2006 IP
  5. alext

    alext Active Member

    Messages:
    406
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    68
    #5
    It used to be that Google (and I assume other search engine spiders) had a hard time keeping track of url data while crawling. So if your site relied heavily on it, Google could not crawl/index your site properly. More recently they have improved but I think it is still wise to limit url data to a few variables at most.

    If you must use url data it is a good idea to use mod_rewrite to hide it.

    i.e.

    domain.com/?cat=garden&subcat=rakes

    to

    domain.com/garden/rakes

    In the second example not only are you hiding url data but you are making the url part of your seo effort.
     
    alext, Aug 28, 2006 IP
    Wyla likes this.
  6. getwiththeprogram

    getwiththeprogram Peon

    Messages:
    120
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Search engines may have problems reading the page query past the ? symbol etc, instead it is common practise to use mod re-write or better filenames such as /page-name etc
     
    getwiththeprogram, Aug 28, 2006 IP
    Wyla likes this.
  7. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #7
    Is good, PHP is now most commonly used for Web :)
     
    JC007, Aug 28, 2006 IP
  8. MLDesigners

    MLDesigners Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yea, if instead of yoursite.com/index.php?page=main you would like to use yoursite.com/main , simply research how to use .htaccess on your server. google.com/search?q=using+htaccess
     
    MLDesigners, Aug 29, 2006 IP
    Wyla likes this.
  9. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #9
    I learned PHP includes from this forum and boy it saves me a lot of time. And it's SE friendly too.

    can someone further explain how to use .htaccess to change domain.com/index.php?page=blahblah to domain.com/blahblah ?

    thnx
     
    abcdefGARY, Aug 29, 2006 IP
  10. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #10
    yes i never knew that the index.php?kdfhskfhskfh was bad for SEO. I am going to research how to fix this (and then post it in my blog :D).
    Green left for all who helped me.
     
    Wyla, Aug 29, 2006 IP
  11. alterego85

    alterego85 Peon

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    PHP is good, but if you just wanna keep it simple, HTML wont hurt.
     
    alterego85, Aug 29, 2006 IP
  12. majohnst

    majohnst Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    majohnst, Aug 29, 2006 IP
  13. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #13
    html does hurt when you have tons of pages. Your finally done, then all of a sudden you spot and error. GG. You gotta go back and fix everything all over again. Here you got one page, edit the info and your done.
     
    Wyla, Aug 29, 2006 IP
  14. alext

    alext Active Member

    Messages:
    406
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    68
    #14
    alext, Aug 29, 2006 IP
  15. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #15
    I am now html-free. Although I've had some good times changing every page. good times indeed.:eek:
     
    abcdefGARY, Aug 29, 2006 IP
  16. thejared

    thejared Peon

    Messages:
    382
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I started using php on my media site, trust me, it's a wonderful idea. I update one page everyday and that's it! It's wonderful.
     
    thejared, Aug 29, 2006 IP
  17. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #17
    combined with CSS and you got yourself a two-page managment system. :D
    I have only used CSS once, and it is for a site I am still working on so we'll see how it works out. But so far so good.
     
    Wyla, Aug 29, 2006 IP
  18. Reliq.

    Reliq. Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Php for the win, html is so simple.
     
    Reliq., Aug 29, 2006 IP