Sonsivri

Computers => Internet Scripting Languages => Topic started by: globestone on December 17, 2007, 04:37:08 16:37



Title: asp.net or php
Post by: globestone on December 17, 2007, 04:37:08 16:37
Hi..
Please tell me asp.net or php-linux, which is safer from hackers?


Title: Re: asp.net or php
Post by: mkkaynak on December 22, 2007, 03:15:36 15:15
Both of them are equal for suffering from Hackkers. But you can use more safe program coding thecnics.


Title: Re: asp.net or php
Post by: crahak on December 23, 2007, 08:32:57 08:32
Like mkkaynak said, it's not so much which of the 2 technologies you use, it's HOW you use them.

If you don't validate user input (form, query strings, etc) and do things like simple string concatenation to create SQL queries (instead of using parameterized queries and such), then you will be hacked, its really just a matter of time until someone bothers trying... The key is writing secure code, using standard best practices. Read up on things like SQL injection and XSS to see what you're up against.

The platforms they run on (apache and IIS6) are both very safe (just look at secunia's reports).

Both have their pros and cons. If you want something simple with dirt cheap hosting, php may suit your needs.