Not a comparison thread I know they have been done to death.

I might have to recode an app from php/mysql into asp/mssql - the app was not coded with platform portability in mind as it was a rogue app at work and I never thought it would gain acceptance the way it has.

If the powers that be come back at me with the news that it has to be coded with the company approved combination of IIS/asp/mssql then I have to learn asp and the little tricks of mssql.

I know there are folks here that know both and I was wondering acouple things from you.

I learned php simply through trial and error and alot of message board searching and manual searching. Is ASP similiar enough to php that I will be able to simply have to learn new syntax?

Any pointers that some of you might have?

    Taking out LISP and some other crazy bizarre stuff, every modern programming language is very similar when you abstract the syntax.

    What's the difference between these?

    echo $var["value"];
    document.write(var.value);
    System.out.println(var.value);
    echo $var->value;
    print var.value

    That's PHP, Javascript, Java, PHP and Python code.

    The thing about learning a new language is to first, grasp how it does the basic stuff. The way it handles value assigment, functions, objects and loops.

    So, yeah, it will only be a matter of learning a new syntax. You will learn ASP faster than someone who doesn't know any programming language, because you have been in touch with PHP.

    Of course there are differences, in Python everything is an object for example, but it still has variable assigment, loops, etc... The point is that they all share a common ground and the rest is syntax and stuff you can't do.

      I learned php simply through trial and error and alot of message board searching and manual searching. Is ASP similiar enough to php that I will be able to simply have to learn new syntax?

      If you mean ASP and not .NET then it should be pretty easy. You code pretty much the same way in both. The difference is mainly syntax. One person calls it CASE and the other SWITCH. If you are talking .NET then it will not be near as easy as it is much more advanced (and much more powerful).

        I think the question should be WHY code it in ASP? You should try to explain to the power above that PHP is crossplatform, where ASP is not (Yes I know the emulators, but if its a company I think the emulators are not the best way), and MySQL is.. what do you call it again.. oh ya, FREE. SQL is going to cost money. I run all windows servers at work, and code 80% of my projects in PHP, 15% in .NET and 5% in ASP ( which takes longer because in .NET I can use C# which is a real programming language, unlike VB where there is no need to end lines and all sorts of crazy crap). ASP is easy, compared to other languages, I think learning ASP first THEN PHP is the way to go, because when I go back to ASP I get all sorts of error because I try to end lines with ; and but $ in front of varriables. Its no good.

        Good luck

          Cafrow I would love to have the choice however as I am not in the IT department here it's not my decision.

          We are a complete Microsoft shop which is part of the reason I was surprised that they approved the program to begin with.

          Thanks all for the replies so far. Keep them coming, please.

            like has allready been said. the basic theory of programming will remain the same, just the syntax is different. oh, and of course asp only has minimal functionality, so you'll no doupt need to learn the api's of a few different components.

              thorpe wrote:

              like has allready been said. the basic theory of programming will remain the same, just the syntax is different. oh, and of course asp only has minimal functionality, so you'll no doupt need to learn the api's of a few different components.

              Would you be able to provide an example?

                mail, arbitrary-precision integers, most of the string functions you'll have to recode yourself, image functions,...

                  Write a Reply...