Computing.Net > Forums > Programming > ASP vs PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP vs PHP

Reply to Message Icon

Name: pap0007
Date: January 5, 2006 at 10:16:33 Pacific
OS: windows xp
CPU/Ram: athlon1900+, 512DDR
Comment:

Hello Everyone

I want to convert some web processing data from MySQL to MS SQL Server, but im not sure what interface to use: PHP vs ASP. i am currently using PHP, but that will all be rewritten in the conversion. the programmer doing the job knows PHP better, and promises that PHP will deliver as much usability and function as ASP in relation to MS SQL Server.

I would not think this is the case since PHP is open-source and asp is MS. i could see php delivering plenty of functionality now and in the future if use MySQL, since that is opensource also...

My summarized question is: what are the advantages to using ASP in this situation? PHP? In the future?

Thanks a lot for any help



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: January 5, 2006 at 10:33:06 Pacific
Reply:

If your only choices are PHP and classic ASP, then PHP is your better choice unless you want to do windows-specific tasks with ActiveX controls (ie manage IIS, etc.) In relation to SQL Server, both will go through ODBC so they will perform more or less the same.

ASP is outdated and frankly, one of the worst options for a web application.

If you have the option to use ASP.NET, however, that's a totally different beast and will provide you with a lot of functionality (and performance improvements when dealing with SQL Server) that PHP does not have. It's harder to learn than PHP, but it's many times more powerful. The down side is that it's more expensive to host. If ASP.NET is an option for you, post back with a general idea of what your project is and we'll go more into detail on PHP vs ASP.NET and which one will better suit your needs.

Good luck,
-SN


0

Response Number 2
Name: pap0007
Date: January 5, 2006 at 13:28:05 Pacific
Reply:

SN- thank you VERY much for your reply.

I am sorry, I am talking about ASP.NET vs PHP.

We are building a somewhat complex MSSQL table structure, we are interested in relating table information, and reporting outcomes of. All in all, we would like to organize and manage data from 3 different corporate departments in this table structure. Ofcourse all info will be mission critical, so we need to focus on security, usability, expandability.

I can reply with more detailed answers as time goes on.

Once again thanks much for sharing your knowledge.


0

Response Number 3
Name: SN
Date: January 5, 2006 at 14:00:35 Pacific
Reply:

It sounds to me like it's a no-brainer to choose ASP.NET if your focus is on security, usability, and expandability. Here's why:

1. Security - ASP.NET supports 3 kinds of security 'out of the box' - Forms (a typical username/database scenario), passport (users use their MS passport to log-in), and integrated windows (good for intranets where everybody is on the same domain). All three kinds of authentication are fairly easy to implement (particularly if you can use the recently released version 2.0) and very secure.

In PHP, security needs to be written from scratch and is completely in the hands of the developer...So it could be more or less secure than ASP.NET's, but probably less secure. However, for very complex authorization schemes, PHP would be easier.

2. Usability - Here it's a toss up. ASP.NET's big downfalls are that it at times does not generate w3 compliant code, and sometimes relies on IE specific javascript where it shouldn't. On the other hand, it has some very cool controls (calendar, repeater, etc.) that would be difficult to do in PHP.

3. Expandability - Here's where ASP.NET really shines. It's completely object oriented, and really allows separation of UI from UI logic, business logic, data access, etc. If you use VB.NET or C#, you have the benefit of having strong types, which allows your data models to be very complex without bogging down the development cycle.

It's for these three reasons that ASP.NET is the most popular among fortune 1000 companies. However, for smaller applications, PHP is great because it's free and easy to learn.

As far as SQL server goes, ASP.NET will definitely have performance and functional superiority to PHP. In ASP.NET, you have datasets that can hold multiple data tables, maintain their relationships, and sync the copy in memory with the database copy. You also have command objects to call stored procedures, connection objects to handle connections and connection pools, etc. There's entire class libraries dedicated to using SQL server, none of which PHP has.

Good luck,
-SN


0

Response Number 4
Name: EADM
Date: January 6, 2006 at 09:42:20 Pacific
Reply:

I think it is better to use PHP since it can works in every OS (windows,Linux.....) .ASP on the other hand works only on machines which are using Windows OS.

EADM


0

Response Number 5
Name: pap0007
Date: January 6, 2006 at 14:26:52 Pacific
Reply:

SN- Thanks very much for the reply, you seem to have a great deal of knowledge regarding this issue. You have given me a leg up on the topic, I will continue from here. Do you by chance have an email address I could use to contact you directly?

Thanks either way.


0

Related Posts

See More



Response Number 6
Name: SN
Date: January 6, 2006 at 14:38:30 Pacific
Reply:

pap0007-
My e-mail address should be linked above.

EADM-
Although I agree with you in principle, you should have a look at the mono project.

Good luck,
-SN


0

Sponsored Link
Ads by Google
Reply to Message Icon

Obscure batch question HTML Random Number Genera...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: ASP vs PHP

Asp question www.computing.net/answers/programming/asp-question/7732.html

VB.Net and ASP.Net same interface www.computing.net/answers/programming/vbnet-and-aspnet-same-interface/11416.html

save form submit HeLp www.computing.net/answers/programming/save-form-submit-help/9955.html