Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Coder googleit's Avatar
    Join Date
    Jul 2006
    Location
    birmingham, uk
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Which is better php or asp

    iam going to buy a hosting account and am wondering which is better to learn?
    Asp or php?
    Thanks for your time

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,088
    Thanks
    2
    Thanked 23 Times in 23 Posts
    I would personally go for PHP, as you have more web hosting possibilities than you do with ASP (and I assume you're really talking about ASP.NET). Both are pretty easy to learn though, if you're looking at that aspect.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Regular Coder googleit's Avatar
    Join Date
    Jul 2006
    Location
    birmingham, uk
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah i was looking at what the php hosting came with and i has way more than asp
    thanks

  • #4
    New Coder
    Join Date
    Dec 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Go for PHP, PHP seems to be faster and more efficient, it is generally referred to as more stable and less resource intensive as well.

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    In truth though, neither is necessarily better. This topic has been discuessed to death before on here. Basically it really depends on which one is best suited for what you are doing and your existing programming knowledge. For example if you've done a lot of Visual Basic previously, going to ASP wouldn't be too difficult at all. Or if you've done a lot of C or Java going to PHP wouldn't be too hard. There are pros and cons to both languages, it depends what you want to do with it.
    OracleGuy

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,623
    Thanks
    0
    Thanked 645 Times in 635 Posts
    ASP has basically been superceded by .NET

    When choosing between them choose the one that your web hosting supports.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #7
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    they are very similar
    php is used more because it works on all platforms
    asp can only be used with IIS on windows

    In my oponion php is the way to go
    Why not thank me?

    http://adamsworld.name

  • #8
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    I'd just go with whichever syntax you feel most comfortable with as stated..

    For example if you've done a lot of Visual Basic previously, going to ASP wouldn't be too difficult at all. Or if you've done a lot of C or Java going to PHP wouldn't be too hard.
    I liked php coming from a C and java background, but for the small amount of ASP I did it didn't seem to hard to learn.
    "To iterate is human, to recurse divine." -L. Peter Deutsch

  • #9
    Regular Coder DELOCH's Avatar
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    537
    Thanks
    4
    Thanked 2 Times in 2 Posts
    It depends, you can't compare apples to oranges

    they are both:

    server side scripts.
    able to generate html,
    able to connect to databases,

    the main thing is which one you like.

    PHP is fast strong and reliable but it's syntax is alike of C++/PERL while
    ASP is a slower strong and reliable but it is odd:

    ASP can use multiple languages(VBscript, Javascript at beginning)
    and addons for Perlscript and such

    I would reccomend you to stick with any language you feel you like.

    I will just tell you what my dad says: Do what they pay you for

    if they pay for ASP, use ASP, otherwise PHP , PERL JSP, Coldfusion, Python, Ruby and other lot of scripts

    any programming language can use CGI even Visual Basic and such

    note: ASP is older than ASP.NET, but I think ASP.NET is a bit slower than ASP

  • #10
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    PHP is the only language you will use. The Spookster has spoken. End of discussion.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #11
    Regular Coder DELOCH's Avatar
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    537
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Spookster, commanding people will not help

    ASP Cookie:

    Code:
    <%
        Response.Cookies("Name") = "Hubert"
        Response.Write Request.QueryString("Name")
    %>
    PHP Cookie

    PHP Code:
    <?
        setCookie
    ("Name""Hubert");
        print(
    $_COOKIE['Name']);     
    ?>
    Still I like PHP more since it's syntax is more like PERL/C++

    but For beginners ASP is quite good

    Like I said decide yourself

  • #12
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    From my personal experience there are a lot more "holier than thou" jerks on the php side of the fence. The type of person who rolls his eyes and whispers something under his breath every time you ask a question. PHP is their life, whereas ASP is just a way to write a stupid script.

    There are tons of resources and genuinely helpful people, but keep that in mind when you go looking for help.

  • #13
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,623
    Thanks
    0
    Thanked 645 Times in 635 Posts
    ASP.NET tends to be used more by web sites for big companies that host their own sites while sites for individuals and small companies tend to go for PHP. This is probably because third party hosting tends to charge more for ASP.NET since they have to buy some of the software whereas all the software you need to set up hosting that supports PHP/mySQL is open source.

    Contary to a prior statement in this discussion you can run ASP on Apache, it is not limited to IIS.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #14
    Regular Coder DELOCH's Avatar
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    537
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Not completely true, PHP has a perfect way for beginners and professionals to make first rate scripts which are:

    1)extremely fast
    2)really simple
    3)really powerful and effective
    4)very interactive
    5)Easily connected to a database
    6)Fun to create

    while ASP.NET can:

    1) Use Visual Basic, J#, C++, C#
    2) True object orientation since it uses the real language
    3) It is extremely slow
    4) It is mostly generated by the studio so you do not code as much.
    5) It is fully compatible with XML
    6) It is fun to create with a freeware GUI(Visual Web-Dev 2005 Express Edition)

    PHP is free but it is still very nice to code. and it is easy to go to PERL from it.

    That is pretty much it...

  • #15
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    ASP is a horibble language. PHP is pure adictive. Thats my opinion. Actually I dislike all MS programming languages especially ASP and VB


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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