PHP or ASP.net or others

Discussion in 'Programming' started by mexfi571, Jun 14, 2009.

  1. #1
    Hi all,

    I'm new in this forum and in being webmaster. I try to create something with dreamweaver and fireworks. But i think, i can go on so far with these programs. I have to learn one language. I won't ask idiot question " which one i should learn?" Everyone can learn what he wants :)

    I want to learn to you, why you prefer PHP or ASP or others? If you share your ideas, we ( baby webmasters:) ) use your experinces.

    I want to learn a language for long time. To create nice, better ideas, sites, ...
    I learnt programming C++ but i almost forgot it :D

    i hope that we'll share our experinces . thanks.
     
    mexfi571, Jun 14, 2009 IP
  2. Dotrebates

    Dotrebates Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Html, Php, Sql

    Edit - More support and use
     
    Dotrebates, Jun 14, 2009 IP
  3. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #3
    PHP is not the most widely used language. Can you provide the source to support your statement?

    Also, refer to the following article @ http://www.langpop.com/ (updated 06-06-09). Google it too.
     
    Social.Network, Jun 15, 2009 IP
  4. FDIM

    FDIM Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Well this question depends on what you need/want to do. PHP is easy to learn, not sure about ASP but it seems for me that its more secure, compared to php, because in php security is in developers hands. Thats just my ideas am still "baby webmaster". I'd also like to read other comments :)

    EDIT: about coldfusion.... All i know that there you need to write a lot
     
    FDIM, Jun 15, 2009 IP
  5. meknassi

    meknassi Well-Known Member

    Messages:
    671
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    110
    #5
    I prefer PHP because its supported by more hosting companies
     
    meknassi, Jun 15, 2009 IP
  6. mexfi571

    mexfi571 Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As i said that im "babywebmaster" i don't have so great ideas for future. But i don't want to depend on dreamweaver or ready-meal programs. I want to create new things or i want to create what i need :)
    So i should close my eyes and i should choose one of them. :) i'll go on look this subject, maybe i can find interesting ideas. Thanks everybuddy:)
     
    mexfi571, Jun 15, 2009 IP
  7. hostcoin

    hostcoin Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hosting and developing websites in PHP is easy and cost effective as compare to ASP or any other scripting languages.
     
    hostcoin, Jun 17, 2009 IP
  8. seocruz

    seocruz Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Advantages of PHP:
    1. Easy to learn
    2. Widely used and supported
    3. A lot of free resources - you can utilize a lot of classes to speed up your work
    3. PHP is written on C and shares its sintax, so when you become familiar with PHP you will be able to switch to C without problems.
    4. Faster than .Net

    Advantages of .Net:
    1. Huge corporate background
    2. Ability to create really amazing stuff in minutes using already available components(but they're mostly commercial products, and not your average cheap ones)

    The general trend is: use PHP if you're a lonely developer or your team makes not very huge websites and use .Net for extra-large, feature-rich resources. (However Facebook is written on PHP, as we know :) and a lot of other giants too).

    P.S. I'm a PHP dev :)
     
    seocruz, Jun 19, 2009 IP
  9. Corwin

    Corwin Well-Known Member

    Messages:
    2,438
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    195
    #9
    I have used ASP, PHP, and ASP.NET, not because I wanted to, but because I needed to.

    ASP is by far the easiest to learn. The book "Active Server Pages for Dummies" is an easy read, and will get you started in just two days. ASP is by far the easiest online language to work with, and will give you the most understandable error messages. It is, after all, the BASIC programming language. Global.asa allows you to globally run code whenever the application starts, and ends, and also when the user's session starts, and ends. You can choose to not define new variables (like PHP) which is good for newbies, but causes a performance hit for large applications. However, you can also force new variables to be defined (dim statement) which penalizes sloppy coders but your web application runs faster.

    ASP.NET is the most powerful language I have ever worked with, and is the most efficient. Global.asax works the same as global.asa with the added features of running code before, and after, any ASPX page runs. Amazing session and application state support. All variables must be defined, or your code will kick an error. Not for sloppy programmers.

    PHP is fairly easy to learn. I taught myself PHP in a few days - but I have the advantage of knowing the previous two languages. HOWEVER, the chief failing of PHP is that it does not support application variables, and it does not support a global.asa/x type file. Also, to my knowledge, PHP does not demand that new variables be explicitly defined, which is fine for newbie programmers, but causes a performance hit for very large web applications (despite claims that PHP is efficient). However, for small web applications, PHP is by far the fastest language here.

    BTW, the whole argument of "PHP is free" is moot because you can get quality shared hosting for $9/month that supports all three of the above languages.

    In summary,
    1. ASP
    Pros: Easiest to learn, good session & state support, MS newsgroups give outstanding professional help
    Cons: Not as efficient as ASP.NET high-performance websites, no support for SEO-friendly URLs

    2. ASP.NET
    Pros: Most efficient for high-performance websites, most powerful, excellent session & state support, support for SEO-friendly URLs, MS newsgroups give outstanding help
    Cons: Most difficult to learn, language is unforgiving

    3. PHP
    Pros: Relatively easy to learn, very very fast for small web applications.
    Cons: Very poor session & state support, no Application Variables, slowest in high-performance websites, no central incentivized support.

    A hidden advantage of ASP.NET is it is also the programming language of Silverlight! Adobe has woefully mishandled Flash. While Flash 9 was tight, Flash 10 has broken many existing applications, and caused many usability problems. Two months ago YouTube announced they are abandoning Flash for video delivery, and are deciding between Silverlight or HTML5 (HTML5 provides video without plugins).

    Notes:
    These three langauges do not share session or application states (PHP does not support the application state).
    High Performance = a large, complex web application on a very busy website.

    Let me know if this is useful for you.
     
    Corwin, Jun 21, 2009 IP
  10. mexfi571

    mexfi571 Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks a lot friends, they are really nice experiments for me and for amateurs. We can compare and we can decide. I will go on learning abour asp - php , one day i'll start learning i think. I thought to learn Php ( i knew programming C ) and php is same system i think. But everyone says ASP.net is powerful thna others.
    I'll decide one day.
    Thanks again
     
    mexfi571, Jun 21, 2009 IP
  11. xcesslogic

    xcesslogic Active Member

    Messages:
    169
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    68
    #11
    Hi

    We are professional developers and we also face this question every time of using which language for which projects. However in our opinion .Net is the most powerful thing to use in any kind of project. Also the trend has changed about the cost of hosting and server support from what it was say 4-5 years ago when a windows server was too expensive to support.

    Now We see that the cost of hosting is almost same for both linux and windows hosting servers. So Hosting server cost is really not a criteria now..

    Also community wise .net is also not less than php and there are thousands of free source codes and libraries and components are available in .Net also.. ie.. sites like ( http://www.codeplex.com )

    using ASP.Net the most powerful aspect is debugging which empowers you for early defect removal, you write code and the IDE will not compile it unless all errors are removed... you can debug your code step by step.. line by line and see whats happening where... this thing is totally lacking in php

    And lastly if as a company you get a 1000$ project to work on then what is more beneficial :
    Doing it in PHP ( 25 days of development ) or
    Doing it in ASP.Net ( 15 days of developmetn )

    Your choice?
     
    xcesslogic, Jun 21, 2009 IP