Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Thanked 2 Times in 2 Posts

    html vs php for search engines - is parsing php more search engine friendly?


    Not sure if anyone can say for certain, but I've created a database driven site which uses php to interact with my mySQL database. I've heard that scripting languages are less search engine friendly, and have managed to FINALLY parse php in my html pages.

    What I was wondering was whether parsing php in html pages is actually more search engine friendly than simply using .php files to begin with?

    Basically, its a free business listing that I'm doing for experiece (I'm a university student working on getting the all important industry/practical experience!) and I'd like to make sure that people's details are found and indexed as easily as possible by search engines.

    I mean...it does make sense that html pages are better, as the information is there straight away, rather than only appearing when the page is opened by a user (and it is pulled out of the database), but does parsing the php make it any better?

    What do you all think? Any advice would be really appreciated!



  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Marion, IA USA
    Thanked 83 Times in 82 Posts
    I don't think you quite understand how server-side languages work. PHP is only every executed or seen by the server. It only outputs HTML back to whoever requested the page whether that be a person with their web browser or a search engine bot.
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Master Coder
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,096 Times in 1,087 Posts
    Spookster is right ...

    Look at this website (codingforums) ... click "view", "page source" (or HTML) ...
    This whole site is generated by PHP script(s).

    The search engines see what you're seeing.

  • #4
    Regular Coder
    Join Date
    Jan 2004
    London, UK
    Thanked 0 Times in 0 Posts
    Just to add to what the other guys said, I'd imagine you have been told or misinterpreted the following incorrectly:

    Search Engines tend not to like URLs such as www.yoursite.com/index.php?article=123456 since as far as they are concerned, it is the same page repeated over and over and over and over at least 123456 times.

    However, whichever language you write your website it, your code will always be output as HTML (and javascript, etc).

    If you have been unfortunate enough to structure your pages using GET variables, or if you're just generally interested I suggest you read this article, or search for "Search Engine Friendly URLs" on a search engine.

    HTH - Dave


    Posting Permissions

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