SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 37 of 37

Thread: PHP vs ASP.NET

  1. #26
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ASP.net is havign better security compared to PHP. Also, you have the option of Master Pages to Improve Efficiency. The code-behind allows you easier to maintain the code when it comes to large websites.

  2. #27
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,063
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stephenjames View Post
    ASP.net is havign better security compared to PHP. Also, you have the option of Master Pages to Improve Efficiency. The code-behind allows you easier to maintain the code when it comes to large websites.
    That is a very vague statement to make. You can use similar frameworks in PHP that allow the separation of code and design and master pages is easily reproducible too (and could be done years before ASP.NET had it). As for the security, that is entirely up to the developer programming the site/application. Yes, ASP.NET has security features built-in for form validation, but each of those can actually be turned off too.

    PHP over the past few years has made major headway in security and helping others learn how to properly secure their sites/applications.

  3. #28
    Non-Member
    Join Date
    Jul 2012
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well,a far as i know about that is in the term of cost and support, PHP is open source and commonly runs on an open source platform like Linux, Apache, MySQL, PHP, It wins over ASP.net for providing the most cost effective solution and a large amount of resources.

  4. #29
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you sir for some advice.. its really help me a lot.

  5. #30
    SitePoint Member webelevatemedia's Avatar
    Join Date
    Jul 2012
    Location
    Bangladesh/Canada
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP is the best of my opinion when it is open source language..

  6. #31
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by webelevatemedia View Post
    PHP is the best of my opinion when it is open source language..
    Again, why does it matter to you that it is Open Source?!
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  7. #32
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,063
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    Again, why does it matter to you that it is Open Source?!
    Because he is a bot that saw "PHP" in a thread and decided to reply with a basic statement that generates flame. My guess is he tried to setup a signature in his profile too, but can't due to not being over 90 days old.

  8. #33
    Non-Member
    Join Date
    Jun 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Database Compatibility
    As PHP uses MySQL for the purpose of database connectivity, it is highly flexible in nature. Another important fact is that it will incur extra expenditure because MySQL can be accessed for free. Whereas, ASP.Net uses MS-SQL for connecting database but MS-SQL can not be availed free from Microsoft.
    Cost
    Linux can be used for running PHP programs and Linux is free operating system. Therefore, the cost of developing a website in PHP language is remarkably low. On the other hand, you need to install Internet Information Server (IIS)on a Windows server platform if you want to run ASP.Net program. As Windows server platform is not a free product, the cost of production is bounded to be increased.
    General Run Time
    It has been observed that ASP.Net code runs slower than PHP code. This is because ASP.Net utilizes server space while running whereas inbuilt memory space is used by PHP while running.
    Coding Simplicity
    ASP.Net codes are somewhat complicated and a web developer needs to work hard to get the hang of it. But PHP codes are very simple and a programmer does not have to make a diligent effort because it is comparatively easier than other types of programming languages

  9. #34
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,063
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by quotemeremovals View Post
    Database Compatibility
    As PHP uses MySQL for the purpose of database connectivity, it is highly flexible in nature. Another important fact is that it will incur extra expenditure because MySQL can be accessed for free. Whereas, ASP.Net uses MS-SQL for connecting database but MS-SQL can not be availed free from Microsoft.
    This is a moot point, both PHP and ASP.NET can interact with MySQL or MS-SQL, or any of the other dozen databases that exist.

    Quote Originally Posted by quotemeremovals View Post
    Cost
    Linux can be used for running PHP programs and Linux is free operating system. Therefore, the cost of developing a website in PHP language is remarkably low. On the other hand, you need to install Internet Information Server (IIS)on a Windows server platform if you want to run ASP.Net program. As Windows server platform is not a free product, the cost of production is bounded to be increased.
    Yes, it does cost the license fee for a Windows box, but with that you can support. To get enterprise support in Linux, you have to pay for it as well (think Red Hat, Madriva, Ubuntu). Also, the up-keep of Linux is usually higher cost than Windows simply because you have to higher someone who really understands Linux and they don't come cheap.

    Quote Originally Posted by quotemeremovals View Post
    General Run Time
    It has been observed that ASP.Net code runs slower than PHP code. This is because ASP.Net utilizes server space while running whereas inbuilt memory space is used by PHP while running.
    Not even close. ASP.NET is compiled so it executes with better performance. The optimized code is then cached thus subsequent page loads are very fast. I'm not saying PHP isn't fast, but it is an interpreted language which is a big difference. Both store some of the execution in memory, php may get thrown into a swap file (written to disk) (if on linux) and you are low on RAM. Nonetheless, I don't think I can agree with the claim that ASP.NET is slower than PHP. Nor can I agree that PHP is slower than ASP.NET (way too many variables to consider).

    Quote Originally Posted by quotemeremovals View Post
    Coding Simplicity
    ASP.Net codes are somewhat complicated and a web developer needs to work hard to get the hang of it. But PHP codes are very simple and a programmer does not have to make a diligent effort because it is comparatively easier than other types of programming languages
    This is a personal opinion. I write in both daily; I didn't have any problem picking up either of them. I was able to learn PHP within days, and the same was true for C# in the .NET framework. I've since spent over 6 years in both languages learning design patterns, good and bad practices, etc. If I had my choice, I'd use .NET for most of my work (so long as I have Visual Studio). Why? Because it forces you into OOP and it is setup so you can do OOP quickly. Granted the quickness comes down to the IDE. If I didn't have Visual Studio, I'd toss a coin to decide if I should write the piece in PHP or .NET (I'd actually analyze it to see which one fits best, but you get the point). Both are simple languages, both have idioms as well (although I'd argue PHP has more idioms than .NET - all those functions that swap the parameter order for things along the same nature is annoying).

  10. #35
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by quotemeremovals View Post
    Database Compatibility
    As PHP uses MySQL for the purpose of database connectivity, it is highly flexible in nature. Another important fact is that it will incur extra expenditure because MySQL can be accessed for free. Whereas, ASP.Net uses MS-SQL for connecting database but MS-SQL can not be availed free from Microsoft.
    Um...PHP is not tied to MySQL, nor is .NET tied to any single database. Can use MySQL with ASP.NET there is also a free version of SQL Server, quite named SQL Server Express. Again, you are not tied to a specific database with either platform.

    Cost
    Linux can be used for running PHP programs and Linux is free operating system. Therefore, the cost of developing a website in PHP language is remarkably low. On the other hand, you need to install Internet Information Server (IIS)on a Windows server platform if you want to run ASP.Net program. As Windows server platform is not a free product, the cost of production is bounded to be increased.
    You would be surprised how little the price difference there is when buying and setting up servers whether it has Windows or Linux. Spending an extra few hundred dollars on a server that is almost $20,000 is nothing. Not to mention the monthly utilities cost to power and connect the server to the Internet, to paying the system administrator to maintain and manage the server, etc. The price of Windows is insignificant in the bigger picture.

    General Run Time
    It has been observed that ASP.Net code runs slower than PHP code. This is because ASP.Net utilizes server space while running whereas inbuilt memory space is used by PHP while running.
    Where did you hear that nonsense? I've been using PHP for several years now, was the first language I learned. In all that time PHP being faster then a compiled language? No, that is utter rubbish. I don't even know where to begin your entire statement makes no sense and is completely wrong. what does "utilizes server space" even mean?

    Coding Simplicity
    ASP.Net codes are somewhat complicated and a web developer needs to work hard to get the hang of it. But PHP codes are very simple and a programmer does not have to make a diligent effort because it is comparatively easier than other types of programming languages
    Errr, not really no. Its just different concepts of the same thing. Having a logical and analytic mind is all it takes to understand any programming language. They all have the same basic foundation the rest is just syntax sugar.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  11. #36
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,625
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I'll just toss this one out there -- PHP is a seriously badly "designed" language. There are alot of better open-source, linux friendly languages to learn on than something that will take years of recovery as a developer to get past. If you want to get hardcore and close to the iron skip this web stuff and write straight C. If you want to be all nifty and neato and agile write ruby. If you want to be effective write python. If you want to hang with the lunatic fringe take up scala.

    I'll add that C# and the .NET framework are probably one of the better designed and most consistent environments out there. Might be worth looking at as well. Be careful, Visual Studio will ruin you for most other things.

  12. #37
    SitePoint Member JohnDevice's Avatar
    Join Date
    Sep 2012
    Location
    USA
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by icecube87 View Post
    I'm in Canada right now and learning PHP. I'm at the point where I'm comfortable in writing it, but obviously still got a lot to learn. So my question is: Will it be hard to find a job hiring PHP developers or is it better to learn ASP.net, because the market seems to be a lot bigger (asp.net requirements appears more on job searches).

    thanks!
    I think you can find ASP.net developer job more easily then PHP developer job . But I advice you to learn just that language of programming you like .


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
  •