PLEASE SUGGEST

by Banned 11 replies
13
What is different between PHP site and ASP site ?
#programming #suggest
  • Rob Pretty much covered it.
    ASP (Active Server Pages) uses VB script and mostly runs on windows servers.
    PHP (Perl Hyperscript Processor?) mostly runs on Linux.

    There are ways of running each on other systems.

    These days you would be better off using ASP.NET than ASP, and you can run a version of that called Mono on *nix, or using the .NET framework on windows.
    • [1] reply
    • Banned
      [DELETED]
    • It's PHP Hypertext Preprocessor, it's not Perl at all (though the syntax is similar as the original developer was a Perl programmer himself).

      And it runs as well on Windows as Linux, there is no platform restriction. Most Windows hosting companies will support PHP.
      • [1] reply
  • What's the difference between English (php) and Chinese (asp)? A lot of people speak both languages, but English seems to be easier to learn. You can write programs in both languages, but a lot of good programs (phpBB, WordPress and vBulletin which you use write now to read this text) are written (only) in php.


    ASP can run only on Windows platforms, while PHP can run both on Windows and Linux platforms (with better performance on Linux).
    • [1] reply

    • I learned the basics of both PHP and ASP in under 2 hours each. But then I have > 10 years programming experience. Which you find easier depends on what you are familiar with.

      ASP, being a BASIC variant (vbScript) is often easier for english speakers to learn, since it
      reads much the same as english. PHP is not really any harder if you are familiar with any programming language already.

      ASP does run on *nix (including linux), with the appropriate interpreter installed, same as PHP on windows.

      ASP.NET will also run on both (*nix uses the Mono framework, Windows uses .NET)
  • Stick with linux servers if you can. If you run a windows server risk of being hacked is substantially higher.
    • [1] reply

    • Your risk of being hacked is proprtional to two things.

      1. How common the software you are using is. Hackers target popular apps.
      WordPress, vBulletin and phpBB are all common hacker targets that run in PHP on *nix

      2. How good your host (and you, you have responsibility too) is at keeping the OS and software patched against known vulnerabilities.

      A properly configure W2K3 server set up for web hosting is no more vulnerable than a properly configured *nix server.

      And before anyone spouts off about number of bugs found:
      1. The real number to worry about is the number found and not fixed, which you will never know
      2. There have been numerous months where windows or specific MS software has had fewer bugs reported that the corresponding *nix software.
  • I suggest you use PHP because there are so many clients are using PHP and servers running linux s cheaper than window based servers. You can run ASP even in linux but you need a third party for that and since PHP has more developers then it is very easy to get codes, optimize and improve.

    I was using ASP (year 1997) but found it not secured or I just don't know yet how to secure it. Also, I always have an error accessing the database and since then I jumped into Perl/CGI then stayed in PHP, I think between year 1998 and 1999. Up to now, I still developing PHP applications.
  • I feel that my statement was a bit misleading. When I say that ASP doesn't run on Linux platform I mean that it's not a "out-of-the-box" option on some (shared) hosting Linux plans.

    I believe that, with proper adapters, you can run almost everything on every modern platform. For instance, I can run exe files under Linux, if I install Wine, but on Windows I can run exe files even if I don't install anything else.
    • [1] reply
    • True enough.
      And I'm going to go stop being passive aggressive and get some sleep instead.
  • Someone is going to kill me for dragging up this old thread but please beg my pardon - I just found out about this part of the site

    PHP used to stand for Personal Home Page but if I remember correctly it was voted on at or just prior to version 3 (my dates may be wrong) and changed to the recursive acronym "PHP Hypertext Processor".

    I liked PHP because I came from C and it has very similar elements to C but was able to remove some cumbersome processes and use PERL syntax as well. Great, now I keep forgetting to declare and initialize variables in C! And arrays, oy!
  • [DELETED]

Next Topics on Trending Feed