Php Vs Asp

Discussion in 'Programming' started by promotingspace.net, Jun 13, 2007.

  1. #1
    Hi
    If I want to choose my programming language, do you suggest I choose PHP or ASP?
    What are the advantages and disadvantages of them in compare?
    Also what is the difference between ASP & ASPX?
    Thanks
     
    promotingspace.net, Jun 13, 2007 IP
  2. songchai

    songchai Well-Known Member

    Messages:
    503
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #2
    On my humble knowledge of Programming, I use PHP as it Free Sources. So nerver ever touch of ASP
     
    songchai, Jun 13, 2007 IP
  3. projectw3

    projectw3 Banned

    Messages:
    713
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you're just starting out, I'd recommend php.
    Asp has kind of moved on to .Net now.

    So far, php appears really simple to use and
    is powerful enough for lots of applications.
     
    projectw3, Jun 13, 2007 IP
  4. sunilvarma

    sunilvarma Peon

    Messages:
    440
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    definitely PHP
     
    sunilvarma, Jun 14, 2007 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Definately .Net

    At the end of the day they both have their strengths and weaknesses and it as much as anything comes down to personal preference.

    At the moment .Net is compiled and therefore quicker to run but there are ways to compile PHP and the next itteration of PHP which is due before to long can also be compiled and so will remove this advantage

    Both have free development tools - Visual Web Developer Express is perfectly good enough for 90% of work - and the difference in hosting costs is pennies a month between nix and windows. VWDE has a built in test server and so no issues there.

    Given the amount of built in components such as gridviews and membership provider etc .Net is typically quicker to develop than PHP but PHP has more free example scripts on the net - though both have millions.
     
    AstarothSolutions, Jun 14, 2007 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree that overall, there is no clear winner: you pick the technology that best suits the situation.

    I work with PHP as much as I can, though, as although the difference in hosting price is not a concern, the fact of the matter is that most of my clients already have their hosting setup. If they're on Apache, they can't run my ASP.NET application and I would not expect them to change their server just for me... on the other hand, if they're running IIS they can still run my PHP code.
     
    TwistMyArm, Jun 14, 2007 IP
  7. smilgy

    smilgy Peon

    Messages:
    52
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is my second year in online.
    First time i was tried to learn ASP & that is a good web programming.
    But when i come for tried it in Internet, I see it is really heavy pricey.
    On the other hand I can use thousand of hosting provider who can serve me his product for free.
     
    smilgy, Jun 14, 2007 IP
  8. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #8
    Has anyone else noticed how fast google index's .asp pages though? I tested this by creating a 5k page site from .asp and then the same thing using .html extensions, and the .asp got 4k pages indexed by the time the .html version had only about 80 pages...

    I'd recommend .asp...
     
    tarponkeith, Jun 14, 2007 IP
  9. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It is normally the other way round as search engines dont like ? parameters - the file extention however is irrelevant from a technical point of view as you can program the server to treat any file extention as what ever you like. URL rewriting is done predominately to eleviate this issue.

    I would suggest that if one site was heavily indexed and the other lightly that there was some other reason for it other than the file extention (a common one is often that with dynamic pages and parameters that a single page can have many different urls - ie redundent parameters but the search engine may not recognise it as the identical page)
     
    AstarothSolutions, Jun 14, 2007 IP
  10. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #10
    Hello,
    I like PHP, bacause it is free, but I know .net is paying more :)
     
    jakomo, Jun 14, 2007 IP
  11. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #11
    I don't even have the strength to begin to display all the reasons to choose .net over any other web language... but the word Generics should be enough.

    ASP (classic)
    PHP trumps ASP (classic) - but just because it's still supported
    .NET trumps and always will trump PHP
    GOD trumps .NET - but just because he is using .NET
     
    ccoonen, Jun 14, 2007 IP
  12. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #12
    It's up to you to choose, but I'd choose PHP :D
     
    ProgrammersTalk, Jun 14, 2007 IP
  13. rthurul

    rthurul Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    PHP is the best if you know how to use it.. Not to mention that the perfect combination is PHP/MySQL on Linux making it completly free :)

    However you would not be able to build a website like the one in my signature using PHP.. :) Could you?

    So ASP.NET is good when you need it
     
    rthurul, Jun 16, 2007 IP
  14. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I am confused by people saying to use PHP because it is free.

    .Net has Visual Web Developer Express which is free and includes a test server.

    Anyone with a copy of windows can install IIS for free

    Where is the cost of .Net? .Net can use MySQL as well as PHP can.
     
    AstarothSolutions, Jun 16, 2007 IP
  15. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    so, where is the cost of asp? is that software? that's not mine, it's host's.
     
    promotingspace.net, Jun 16, 2007 IP
  16. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #16
    Yes, now VWDev Express is free but I think they are talking about the cost of hosting. You can get a lottttt cheaper php host than you would a windows box, and if you want a kick bum db (SQL Server, not express) that's a big cost. But... it's the best if you are willing to pay for it!
     
    ccoonen, Jun 16, 2007 IP
  17. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Pretty much every hosting company out there supports PHP, it runs on about any established operating system out there, it has the largest developer community (which makes finding help easier), lots of projects and libraries, and it's simple to learn and pervasive (you can write system scripts and other non-Web bits of code with it).
     
    MartiCode, Jun 17, 2007 IP
  18. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #18
    I also vote for PHP. ASP is MS technology so it will constarin you in many ways.
     
    it career, Jun 17, 2007 IP
  19. Claudek

    Claudek Well-Known Member

    Messages:
    1,379
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #19
    That statement has no merit. Did you post that simply to Microsoft bash?

    How will it contrain you? It is another technology that can be used for website development, both front and backend. Are you contrained by the fact that it will run on Windows only servers? Well DUH. Do we claim to be contrained that php/MySQL runs on Linux/Unix only?

    All my sites run on PHP/MySQL but I have been playing with the New .NET dev stuff that MS has brought out and have been quite impressed with it so far. Even though I am not that skilled programming-wise, I was able to build a simple CMS utilising a relationship-db interface that was intuitive.

    For the webmasters who do not know/want to program much, the PHP/MySQL platform is more than sufficient.

    For those webmasters who can program, the new ASP.NET stuff is quite powerful and should not be put on the wayside simply because it is fashionable to not like MS products.

     
    Claudek, Jun 17, 2007 IP
  20. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    It doesn't, PHP runs on Windows without any problem. The opposite however is not true...

    Personally I like that PHP is built like other open-source software : it relies on open-standards and blocks of other open-source software that are well documented and maintained, and not under the control of single company. I've no more issue with ASP belonging to Microsoft that any other environment belonging to Adobe, Apple, etc. I just like the idea that the tools my site is built with are not going to be pulled under my feet by some guy from the marketing department.
     
    MartiCode, Jun 17, 2007 IP