...

View Full Version : PHP vs. ASP.NET Programming?



Mgirl
02-12-2008, 01:31 AM
I'm a total noob interested in learning a coding technique. My question is, out of PHP and .NET, which technique is:


More stable?
More secure (unhackable)?
Better for Ecommerce and Classifieds sites (like Ebay, but fixed price)?
Use with Flash animation?
Use with Adobe Dreamweaver (am assuming both)?
Less time to program?
Cheaper and more convenient hosting (but still has to be stable)?


And also, in your opinion, what is the latest programming technology?

Please try to keep it simple as i am not familiar with all the concepts yet.

Cheers,

Mgirl

oracleguy
02-12-2008, 03:56 AM
PHP will provide for cheaper hosting since PHP will work on Linux and Unix with Apache unlike ASP.NET which requires Windows Server.

StupidRalph
02-12-2008, 04:03 AM
I'm a total noob interested in learning a coding technique. My question is, out of PHP and .NET, which technique is:


More stable?
More secure (unhackable)? - implementation is whats important not the language.
Better for Ecommerce and Classifieds sites (like Ebay, but fixed price)?
Use with Flash animation?Not failiar with .NET but PHP has some functions to manipulate/create swf files
Use with Adobe Dreamweaver (am assuming both)?I wouldn't recommend Dreamweaver either way...unless you're letting it do all the coding.
Less time to program?TTHW (Time To Hello World) is fairly straight low in both from what I remember but I learned VB6 first
Cheaper and more convenient hosting (but still has to be stable)? PHP


And also, in your opinion, what is the latest programming technology?

Please try to keep it simple as i am not familiar with all the concepts yet.

Cheers,

Mgirl

:thumbsup:

Mgirl
02-12-2008, 12:54 PM
Thanks people!

But i still don't understand, what is the fundamental difference between PHP and ASP.NET? Why use either?

If there is no real difference, why do they both exist?

I am confused :eek:

VIPStephan
02-12-2008, 01:15 PM
ASP and ASP.NET are proprietary to Microsoft (i.e. they invented and licensed it and it’s at their discretion when they will do “updates” to their language and how they would look like), and you have to use it in combination with other Microsoft products, such as an MS server, etc. while PHP is free for anyone and works on all open source servers (which are mostly Unix based).

I guess Wikipedia will give you some info.

rafiki
02-12-2008, 02:02 PM
More secure (unhackable)? - implementation is whats important not the language.
i couldnt agree more, both languages are equilly hackable, but depending on how you lay your code out makes it less hackable, ie functions to remove dangerous data.

andyany
02-12-2008, 03:27 PM
Even my vote goes for PHP, it's most used and popular web programing language. I am not a fan of Microsoft OS and will never opt for their products :D

Mgirl
02-13-2008, 01:03 AM
PHP vs. .NET = implied difference between Microsoft and Apple. They both do the same thing, but mandated by different organisations. Uh huh.

Thanks guys (and girls?), really appreciate it.

Mgirl
02-13-2008, 01:06 AM
More secure (unhackable)? - implementation is whats important not the language.
i couldnt agree more, both languages are equilly hackable, but depending on how you lay your code out makes it less hackable, ie functions to remove dangerous data.

What is 'dangerous data' in this situation?

StupidRalph
02-13-2008, 02:42 AM
'Dangerous data' is very broad and specific to what you're doing. There are a number of different 'hacking' techniques that would determine themself to be 'dangerous data'. For example, if you're connecting to a database, a malicious user can add additional code to modify your SQL (http://www.google.com/search?q=SQL) statements using SQL injections (http://www.google.com/search?q=SQL+injection) to do things that you do not intend. It'll be really dishearening to view your site only to find out that all of your databases have been deleted. But exploits don't simply lend themselves to strictly dealing with databases. Other exploits such as CSRF (http://www.google.com/search?q=CSRF) and XSS (http://www.google.com/search?q=XSS) attacks do not involve a database at all. To trully learn how to implement your code you should not only read some security books/articles but actually begin to code.

I just wanted to make sure that you know that .NET vs. PHP wasn't Microsoft vs. Apple. .NET is a developed by Microsoft but PHP is not developed by Apple. PHP is an open-source (http://www.google.com/search?q=open-source) project that is developed by everyday people not a company. It is constantly being updated and you're able to use with other open-source technologies. The advantage of using PHP over something like .NET or coldfusion is that you don't have a licensing fee to implement them. You don't have to have a specific type of server to run PHP. With .NET it is a necessity to have a Microsoft server.

elkdanger
02-13-2008, 03:50 PM
If you're just new to programming in general, I'd recommend Asp.Net (with VB.Net) over PHP any day (I'd recommend it anyway nowadays, but that's beside the point). Mainly because what the .Net framework gives you in terms of functionality, productivity and ease of use is much better. I also think there are better tools available now (since Microsoft began realeasing the free versions of its IDE last year), and hosting really isn't that expensive although generally it will be a little bit more than php hosting.

When you start getting into using Sql Server is when the prices for hosting can go up. But even then you have options since you can just use an Xml data source, or MySql.

Apostropartheid
02-13-2008, 11:29 PM
A licensing fee? Doesn't MS's IIS come with XP Professional discs for free?

I'm no programmer, but I've always preferred PHP, if only because it makes more sense to me. My recommendation would be to take a crash course in both and see which you understand more.

oracleguy
02-14-2008, 01:23 AM
A licensing fee? Doesn't MS's IIS come with XP Professional discs for free?

I'm no programmer, but I've always preferred PHP, if only because it makes more sense to me. My recommendation would be to take a crash course in both and see which you understand more.

Yes but Windows XP itself isn't free. Besides you can only do development work with IIS and XP since the version of IIS in XP is significantly handicapped feature wise.

evo
02-14-2008, 02:30 PM
From experience, I'd recommend you go with ASP.net - it is expensive, but there is a lot of highly paid vacancies around for it for those who are experienced in the field.

From what I have heard, asp.net is meant to be blistering fast. I've heard a few examples based on the asp.net forums, at you guessed it www.asp.net.

I may be wrong though, but that's what I've heard.

Mgirl
02-14-2008, 02:40 PM
Hmm.. do you think there are a lot more functionalities available in ASP .NET? Especially for shopping cart software, classifieds websites, and novelty websites like imeem?

And, how long do you think it would take to learn ASP.NET? Bearing in mind i have some knowledge of html, but would be starting from scratch with programming.

Btw, would i need to purchase something to code in ASP.NET? Isn't it just a coding 'language'? Can't i do it in notepad?

Excuse the questions, i am a noob.

evo
02-14-2008, 03:00 PM
Well a good starting point would most certainly be the asp.net forums at http://www.asp.net, they'll be full of asp.net enthusiasts and professionals alike.

Also, www.devshed.com offer good basic tutorials on asp.net. It is, as you would assume a language that you can program in notepad if you so wished.

However, like with php, you'll need to have the relevant software to execute the code you have. You can download that and get step by step detailed guides from the www.asp.net homepage.

Feel free to ask questions, however silly they may seem. It's what we're here for.

evo
02-14-2008, 03:02 PM
http://www.asp.net/get-started/ - that is a wonderful place to start off. It has video tutorials and working examples.

Just had a peep, the main links for how to get started are on the top left of the www.asp.net homepage.

Head there and get cracking. Happy scripting kido.

Mgirl
02-15-2008, 12:09 AM
you'll need to have the relevant software to execute the code you have.

Thanks Evo :D.

I am defo going to check out the resources you gave me.

However, i am wondering: what do you mean by the 'relevent' software? What are some examples of this 'relevant' software?

Thus far, all i have managed to achieve is some html work in notepad as practice.

What are the steps to creating a website? Eg, write code in notepad, execute code using ****, create MySQL database (?), linking databases to code ?, upload on to server?

I'm not sure if this stuff is in links you gave me, but it will be useful for me to see the broader proccesses before i start the nitty-gritty work of programming ;)

jerry62704
02-15-2008, 11:15 PM
How hard is it to allow PHP in Apache (Tomcat)? I've got Tomcat on my computer and would like to use PHP.

Also, FYI, I can open a PHP file with FF, but not IE. Is there a setting I should have?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum