Difference between PHP and ASP.net

Discussion in 'Programming' started by zobair, Dec 2, 2008.

  1. #1
    Hi ,
    I will make a social networking website. My coder will use ASP.net but people are suggesting me to use php. Which will be better and what are the difference between them?

    Thanks
     
    zobair, Dec 2, 2008 IP
  2. plvsoft

    plvsoft Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Both are server-side technologies and allow to do a lot of things thanks to their huge frameworks out of the box. ASP.NET is a Microsoft technology while PHP is open source. In regard of the hosting, that makes a diffference price wise (PHP/MYSQL is cheaper than ASP.NET/SQL SERVER hosting).

    Same if you want to find developers, a MYSQL/PHP dev is cheaer than a ASP.NET.

    I would say unless you have good reasons to use ASP.NET (you know a good developer etc), it would be easier for you to use PHP/MySQL.

    Hope it helps.

    Patrice
     
    plvsoft, Dec 2, 2008 IP
  3. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #3
    PHP : cheap server cost,
    ASP : expensive server cost.

    ASP run on win server and php on unix or linux.
     
    Jalpari, Dec 2, 2008 IP
  4. zobair

    zobair Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi,
    thank you so much for the reply. I have heared something about liscense. Can you please explain about ASP liscenese? Like do I have to renew the liscense or buy new liscense for future modifications or adding new items into my social networking site? thanks again.
     
    zobair, Dec 2, 2008 IP
  5. plvsoft

    plvsoft Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The only license you need to run asp pages on your server is an operating system license for the box where the IIS server is running. If you use hosting it's included.
     
    plvsoft, Dec 2, 2008 IP
  6. zobair

    zobair Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    actually i didn't understand about operating system license. Is that mean the coder who is making the site have to be licsensed windowx operating system on his hard disk?
     
    zobair, Dec 2, 2008 IP
  7. alpha42

    alpha42 Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ASP -> Windows only.
    PHP -> Could be run on Linux, or Windows, and probably some others I'm not thinking of right now.

    As others have said, the cost is generally going to be higher for hosting the ASP script down the road, as windows hosting is generally more expensive.. and if the ASP script is using Microsoft SQL for it's data storage.. well.. that's going to be *really* expensive. (Especially if it should grow to were you decide to get your own hardware and host it yourself someplace)... SQL Server licenses are insanely priced when done per CPU...
     
    alpha42, Dec 2, 2008 IP
  8. plvsoft

    plvsoft Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    no, the developer doesn't need a license (unless he develops the pages under Windows which is more than likely if he/she does ASP code) but the server where the pages are gonna be hosted needs a windows license.

    However there are some exceptions:

    - ASP.NET pages with Mono and Apache.
    - I think there is an ASP engine somewhere other than IIS but I don't remember its name (maybe Chilisoft ASP)

    Patrice
     
    plvsoft, Dec 2, 2008 IP
  9. daringtakers

    daringtakers Well-Known Member

    Messages:
    808
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #9
    FYI: PHP can run on windows also

     
    daringtakers, Dec 2, 2008 IP
  10. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #10
    .Net can be run on linux but in reallity is best suited to running on Windows servers. That said, the price difference between a Linux server and Windows server is normally a couple of dollars a month at most and for any business site shouldnt really be the deciding factor.

    PHP has the advantage of many more developers and so cheaper prices. More free off the shelf solutions. .Net has its own advantages too in terms code being compiled and therefore quicker to execute. We find .Net development is quicker and so number of hours to develop custom solutions are quicker etc.
     
    AstarothSolutions, Dec 3, 2008 IP
  11. rchampion

    rchampion Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    There's an overwhelmingly large amount of PHP developers in my area (Boston) and very few ASP guys as far as I can tell.
     
    rchampion, Dec 3, 2008 IP
  12. pitagora

    pitagora Peon

    Messages:
    247
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I can tell you it's quite the opposite if you are looking to a big script that uses a lot of cpu. When it comes to enterprise size websites development is quicker and cheaper on ASP.NET and it's the same with hosting. Yes, a windows license is going to cost but the hardware required to run a large php application is a lot more expensive. ASP.NET applications scale upwards very well. Less RAM needed and less CPU. Let's not forget we are talking of compiled code, heavily optimized by the jit compiler.

    PHP is easy to code and simple. A 12 years old can do it. Great for small and simple projects. But if you want something big.....

    As for hosting...somebody said that it's really expensive to use SQL Server. With all the respect, he doesn't know what he is talking about. SQL Server Express is free! Yes it has limitations: no replication, no clustered services, and 4Gb database. What? You think the free mysql version support replications and such? Those features are never free, regardless of the vendor.

    As for licenses....hosting companies pay for bulk licenses. They are a lot cheaper then what you would pay for at home. Usually the hosting price is 1-2$ over the linux hosting price for the same hardware. Other times they are simply the same. My hosting company has flat prices for both. And as I said, ASP.NET scales up a lot better. In the long run it's cheaper.
     
    pitagora, Dec 9, 2008 IP
  13. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #13
    Excluding server things,
    ASP programmers are also hard to find for developing your site, addons, etc
    PHP you'll find very easy
     
    crivion, Dec 9, 2008 IP
  14. Ander-son

    Ander-son Active Member

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #14
    Hi,

    As an ASP.net developer this my opnion

    php
    +easy to develop
    +more developer
    + runs on linux cheaper
    + a lot of free code out here

    - Slower
    - slower development

    Asp.net
    + faster
    + faster development
    + cleaner code
    + bigger companies like it better (They know and trust MS)


    negative points other posts already said.

    I would try to find or even buy a base framework to start with

    for .net go to www.asp.net

    good luke with the project
     
    Ander-son, Dec 9, 2008 IP