Which one is the best option PHP or .net ?

Discussion in 'Programming' started by fredrikrob, Oct 13, 2011.

  1. #1
    Hi,

    I have some doubt in my mind about web development that should i need to go for the PHP or .net based website. As i know that .net based website is much secure then of PHP but it's expensive then of PhP. So can you please give me suggestion in details ? What should i do and why ?
     
    fredrikrob, Oct 13, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    PHP runs everywhere. .NET does not.
    PHP is free. .NET is not.
    PHP usually requires less lines of code. .NET requires more.
    PHP will remain stable for many years. .NET has had several major changes just in the last seven years.

    Conclusion: don't use anything .NET.
     
    drhowarddrfine, Oct 13, 2011 IP
  3. damoolag

    damoolag Well-Known Member

    Messages:
    311
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    good coding = much secure php website :)
     
    damoolag, Oct 13, 2011 IP
  4. vivaspots

    vivaspots Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    nothing 10% secure , besides look at Facebook , its a php website , besides php has a lot references, resources and tutorials more than asp.net
     
    vivaspots, Oct 13, 2011 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    PHP and .Net are both free. PHP and .Net can both be used to write secure or insecure websites.

    There are (at least) two considerations that go into making the decision:

    1) Are you running on an IIS server or an Apache server?

    2) Which languages are you most comfortable/experienced with?

    Neither security nor price enters into the decision.
     
    Rukbat, Oct 14, 2011 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    No. .NET is not free.
    1) You must buy Windows to code for it.
    2) You can only run .NET applications on Windows servers (for the web) which cost more.
     
    drhowarddrfine, Oct 14, 2011 IP
  7. inet

    inet Well-Known Member

    Messages:
    706
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    163
    #7
    I was not looking for this thread but it has made me more conscious since I was almost going to develop a new SaaS in .net and forgoe .php which i have historically always used. It was convienient since i found a local coder but I will go back to developing in .php now
     
    inet, Oct 14, 2011 IP
  8. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #8
    Everyone here seems to like PHP more. I do too... In any case, .NET is a framework, not a language. Just because it's free, it doesn't mean it's better. There are advantages and disadvantages to each.

    Here's some fun facts: ASP.NET/C# is a lot faster than PHP because it's applications are compiled. While PHP is an interpreted language meaning it has to be compiled each time it runs, therefore it is slower. Also, everything that you develop in ASP.NET/C# can be compiled as Windows application with just few modifications. Having to develop in both languages, I'd say ASP.NET/C# is much easier to manage and debug if you are developing huge applications.

    Just saying, there is nothing better than the other, just choose the one that best suits your needs.
     
    Rainulf, Oct 14, 2011 IP
  9. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #9
    .NET is the clear winner
    ps.. several misinformed users in this thread...lmao
     
    Brandon Sheley, Oct 14, 2011 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Yet far fewer people use it for the web so who is misinformed?
     
    drhowarddrfine, Oct 14, 2011 IP
  11. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #11
    You must buy a computer to write PHP code, so it's not free either - in that sense.

    .Net does come in a free version. (Do you include the price of building a garage as part of the price of your car?)

    Which was the reason for my first point. If you're running on Apache without .Net capability, you don't have the option of using the .Net framework. (And since there's no question of which is the better server, this thread is about as moot as the last 200 times someone asked the question.)

    But it usually doesn't cost more to buy Windows hosting than it does to buy Linux or FreeBSD hosting.
     
    Rukbat, Oct 16, 2011 IP
  12. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #12
    No. All things being equal, including that a computer must be bought. .NET will cost you more in every way.
    And you don't have the NEED either. .NET is only needed for Windows.
    Haven't looked in a while but it used to always cost $10 to $20/month more.
     
    drhowarddrfine, Oct 16, 2011 IP
  13. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #13
    Not appreciably. When you're spending $25,000 for a server, a few hundred for an OS is almost insignificant.

    I seem to be having a problem on this site with some words not showing. What I originally saw of that line (until I quoted it) was:

    And you don't have the NEED either. .NET is only needed for .

    And I immediately thought "only needed for people who can't write software".

    It's also "needed" when your client tells you that you're going to be writing his site to run on that Windows box - or someone else is going to be writing it. I sometimes take jobs like that because the code the site will need sounds interesting. Not often - sometimes.

    Can't get much cheaper than some of these http://www.webhostingsearch.com/windows-web-hosting.php (I'm not saying that any of them are any good but there are reviews.)
     
    Rukbat, Oct 16, 2011 IP
  14. OSSEO

    OSSEO Active Member

    Messages:
    1,430
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    53
    #14
    I think PHP is better than .net in sense of cost and user friendly .
     
    OSSEO, Oct 18, 2011 IP
  15. Divided

    Divided Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    3
    Trophy Points:
    0
    #15
    Having used both I prefer PHP over .NET, but they are both as bad/good as each other.

    I prefer the documentation for PHP and as the PHP community is larger finding a solution to something you are stuck on is usually relatively easy!
     
    Divided, Oct 18, 2011 IP