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.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Location
    U.S.A
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts

    ASP PHP or ASP.NET?

    I didn't see a thread on this, So I am going to have to ask this. I have three questions.
    1. What is the difference between ASP and ASP.net?
    2. Is asp similar to php(Used for the same purposes)?
    3. Is asp 100% free to use/learn/operate?


    I have begun to learn php, but I was wondering if ASP would be better for me to learn?

    Thanks,

    Joe

  • #2
    Registered User
    Join Date
    Jan 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In my opinion, no...ASP wouldn't be better to learn than PHP. PHP is becoming very popular and nearly all of the clients I work with are using it.

    Now, I'm a die-hard ASP fan myself, but if I had to start all over and choose between either ASP, PHP or ASP.Net it would not be ASP. I love the language but out of all my clients I think only 5% of them have used ASP.

    I think you'll find .NET used in a lot of the organizations or bigger companies.

    My recommendation would be keep on keeping on with PHP and if you want to learn something else dive into .Net

    ASP.NET is like ASP on steroids...they share the same three letters but that's about it...okay, more than that...in fact you can run standard ASP through .NET but .NET reminds me more of VB and you have a TON more control that with classic ASP.

  • #3
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The pricing is difficult to answer.

    For home use/testing:
    ASP scripts (e.g. VBScript) can be written in any text editor, the same as PHP.
    If you have XP Pro then you have IIS available.
    If you have Win2000 or Vista (premium?) then you have IIS.

    If you have 2003 then you definately have IIS and have probably spent a bit of money.


    If you have XP Home then you can use a third-party ASP webserver or an IIS hack.

    So basically, if you have purchased Windows then you are not paying anymore to write ASP scripts.


    If you went totally opensource then you would save money on the OS, but would have little, if no support for ASP.
    Great if you want Apache, PHP, mySQL for example


    Hosting:
    There are also free ASP webhosts available. They are not great and most have restrictions. You find the same with any free host, even those for PHP.


    If you puchase hosting then these days you can find similar priced plans for linux and windows.
    I guess one benefit of a Windows host is that you can run ASP and PHP/mySQL.
    If you wanted MSSQL you would probably have to pay more though.


    Also, you probably wont have the freedom of using Apache and .htaccess
    Some hosts do restrict some functions, but that's upto you & the host you choose (this goes for windows or other OSs).

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ASP and PHP are roughly equivalent as far as being easy to use and straightforward. PHP is quite a bit more powerfull, able to do things that ASP cannot do without installing additional $$ components, such as handling form uploads, image manipulation, network things.

    As was said, ASP.NET is a lot like VB - same paradigm of having a form with code behind it to react to button clicks, etc. Powerfull, but carries a lot of baggage and seems a bit cumbersome to me.

    Wouldn't hurt to know a little of all 3, but start with ASP or PHP first. ASP usually uses VBScipt which may be easier syntax to learn, PHP uses a more C-like syntax with curly brackets and semicolons.
    ASP:
    Code:
    If a > b then
        response.write ("a  is greater than b")
    else
        response.write ("a is not greater than b")
    end if
    PHP
    Code:
    if (a > b) {
        echo "a is greater than b";
    }
    else {
        echo "a is not greater than b";
    }
    fv


  •  

    Posting Permissions

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