Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 50
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP, ASP or JSP?

    Hi,

    Can anyone give me some feedback on what I should use,
    between PHP, ASP, and JSP?

    Thanks,

    Fernando

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP - it is really good, and you will appreciate it later on too.
    ASP is good too, but I prefer .php. It is up to you tho.


    Ionsurge.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh geez here we go, you may have started something here ...
    JSP *thumbs down*
    ASP is great
    PHP is the best

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #4
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, I think I am hearing what I want to hear, but why do you say JSP *thumbs down?

    Fernando

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We agree - no problem!


    Ionsurge.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    JSP has many very nice features however JSP tends to run rather slowly. You won't find JSP supported on very many shared hosting servers due to the amount of resources JSP uses. Typically businesses that have their own servers will use JSP.

    PHP can do pretty much anything that JSP can do but PHP was originally designed for the web where as JSP draws it's roots from a high level standalone software development. Java, the lanaguage used in JSP has a very steep learning curve.

    ASP is nice too but has a bit of a steeper learning curve than does PHP. The difference in speed between PHP and ASP is probably not real noticably different.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Spookster,

    For your very useful information.

    Fernando

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are we talking about ASP classic or ASP.NET?

    There's a big difference

    While you ponder that, here is an excellent article about choosing a server-side langauge.

    Just try to remember that terms people here use like "better" or "best" are subjective and biased, and need to be taken with a grain of salt.
    Last edited by beetle; 12-09-2002 at 10:02 PM.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    It also depends if what languages you already know. For example, if you know VB then ASP is the obvious choice.

  • #10
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    question, doesnt asp support multiple languages, VBscript, and JavaScript, etc?.
    Kris Hubby
    kwhubby site

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would actually disagree with spookster for once... ASP isn't a steeper learning curve than PHP (although ASP.NET is a huge learning curve!).

    I think if you are familiar with a C based language than perhaps PHP is for you.

    If you know BASIC or VB then ASP is likely more up your alley. The thing is, they can both do pretty much the same thing. Each has its advantages and disadvantages. It's up to you to figure out which language suits you best!

    And yes, you can use VBScript or JScript with ASP, kwhubby, but that pales in comparison with what you can do with .NET.
    Last edited by whammy; 12-10-2002 at 08:00 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #12
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yeah, I agree with Whammy.

    I'm learning PHP right now and I find it considerably harder than ASP.

    Although I wouldn't really call PHP hard when comparing it to ASP because it isn't the difficulty it is the structure of the language.
    ASP (VBscript) is really easy to learn because the langauge structure is based almost completely on clean logical expressions.
    I don't mean to say that PHP isn't, just that ASP's logical expressions differ making it easier to read because it is cleaner.

    Example;
    Code:
    MyVariable = 2
    If MyVariable = 1 Then
       MyVariable = MyVariable + 1
    Else
      MyVariable = MyVariable - 1
    End If
    Now you can easily decypher that with no programming knowledge at all even if you haven't used a computer before.

    PHP Example:
    Code:
    $MyVariable = 1
    if ($MyVariable = 1) {
      $MyVariable = $MyVariable + 1
    }else{
      $MyVariable = $MyVariable - 1
    }
    In my opinon that is harder to read when starting out due to the $ chars everywhere and having the paras and brackets. Now I think that you would find it a little harder making sense of it.

    In the end it will depend on what you want to do.
    It is up to you but I say start out with PHP as it will be a lot easier to pick up other languages later like ASP.

    I think by starting ASP before PHP has made it a bit harder but then again I've used BASIC before ASP so it made it easier and I've a little knowledge in JavaScript so it makes PHP easier (a little) because of the language structure.

    PS: I may have made a mistake with that really simple PHP code because I have only read about 2 pages on it so far.. lol
    Last edited by Mhtml; 12-10-2002 at 09:12 AM.
    Omnis mico antequam dominus Spookster!

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mistake...

    You did...

    PHP Code:
    if ($MyVariable 1
    should be:

    PHP Code:
    if ($MyVariable == 1
    "=" is the assignment operator, "==" is the comparison operator.

    Of course PHP syntax differs from other languages, but as with all languages you'll get the hang of it. I personally have no experience with ASP, so i can't compare them, but i'm really impressed with the capabilities of PHP. There's also a vast supply of resources avialable which can help with learning, working out bugs, etc. I'd give it some serious consideration.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #14
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My only problem with ASP and ASP.NET in particular is the huge expence for Microsoft's development tools like Visual Studio, also hosting of ASP is more expensive than PHP and ASP.NET is even more expensive still.

    It's a pity that Microsoft insists on making money even out of developers. I don't mind paying but I think Microsoft's prices for their MSDN is a clear rippoff.

    On the other hand PHP, Apache and MySQL are all free for developers. And hosting is a lot cheeper.

  • #15
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    and in Java it would be:

    Code:
    int MyVariable = 1;
    if(MyVariable == 1){
    MyVariable = MyVariable + 1;
    }
    else{
    MyVariable = MyVariable - 1;
    }

    and it is pretty much the same in C++. Of course real programmers would typically use shortcut syntax like:

    Code:
    int MyVariable = 1;
    if(MyVariable == 1){
    MyVariable++;
    }
    else{
    MyVariable--;
    }


    and in Javascript:

    Code:
    MyVariable = 1;
    if(MyVariable == 1){
    MyVariable = MyVariable + 1;
    }
    else{
    MyVariable = MyVariable - 1;
    }

    So the syntax is almost identical in PHP, Java, C++ and Javascript. If you learn Javascript then learning those other lanaguages becomes much easier. Also if you know any of those other languages then learning additional ones becomes much easier. If you learn VBScript or .NET crud then guess what you haven't learned anything that is really going to help you learn other lanaguages.
    Last edited by Spookster; 12-11-2002 at 01:58 AM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  
    Page 1 of 4 123 ... LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •