SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict dbr's Avatar
    Join Date
    Aug 2006
    Location
    Tucked away in the mountains...
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question ASP or PHP which produces the most xhtml valid code?

    I'm undecided as to focus my energy on learning ASP or PHP which I will want to start doing sometime soon hopefully.

    I need to choose, so I'm curious as to whether or not one or the other is more likely to produce XHTML valid code than the other. e.g. a page that will make it through the validator. http://validator.w3.org/

    Or, will they both preform the same.

    Does anyone know?
    "Three components make an entrepreneur:
    the person, the idea, and the resources to make it happen."
    Anita Roddick ~British entrepreneur
    dbr founder of: ProximityCast.com

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    In PHP you produce all of the HTML. IN ASP I don't think you do. And since MS has an awful reputation for producing compliant code I'll have to give PHP the edge since it at least leaves it up to the author instead of just spitting out garbage on its own.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ASP <=> ASP.net

  4. #4
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP and ASP are both perfectly capable of producing valid HTML code. It's entirely down to you

    I'd go down the PHP route myself. ASP isn't really worth chasing any longer though, it's been superceded by ASP.net and C#.

    It's a bit harder to produce completely valid code using ASP.net and C# but still perfectly possible.
    Olly Hodgson
    thinkdrastic.net

  5. #5
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    I agree with gnarly, it entirely depends on how YOU write it. PHP doesn't generate XHTML really unless you are using specific classes to write the outputed code.

    Personal choice - PHP but it seems that in todays modern marketplace people are looking more and more to developers who can code in PHP, ASP .NET so depending on your final goal - you choose
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


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
  •