|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: PHP or ASP.Net? | |||
| PHP |
|
31 | 81.58% |
| ASP.Net |
|
7 | 18.42% |
| Voters: 38. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Ok, what is better in your opinion - PHP or ASP.Net? Provide a reason for your answer
![]() |
|
#2
|
|||
|
|||
|
php: no M$ included
![]() |
|
#3
|
|||||
|
|||||
|
Re: PHP or ASP.Net?
Quote:
--Petey |
|
#4
|
|||||
|
|||||
|
Professional or Personal stand alone websites: Normally PHP, as its free, open source, yada yada yada.
However, ASP.NET does have its advantages. Such as its tight integration with Active Directory and some of its new uses which haven't been published too much. I'm not saying one's better than another, I'm just saying they have their own uses. Personally, I develop for asp.net, but thats mainly because my office uses it so thats what I taught myself. (Gov't tends to like going m$, they just find it easier than trying to figure out a whole new OS [linux]. However, we are going to move to php and MySQL within the next few years for our new projects, mostly as a proof-of-concept for the state of florida gov't system. We'll proboly implement it first, and from there [as long as we do it well] it should spread throughout the state fairly easily). |
|
#5
|
||||
|
||||
|
PHP totally wins over anything out there. Barely no one uses ASP, and that is for a reason.. it is terrible.
|
|
#6
|
|||||
|
|||||
|
Quote:
If my host would allow Windows 2000 server users PHP, then I'd not be contacting Tech Support all the time. PHP also has more easier syntax in my opinion. A simple difference: PHP Code:
|
|
#7
|
||||
|
||||
|
Quote:
back to the topic PHP mainly becasue of OpenSource and Simplicity. |
|
#8
|
||||
|
||||
|
Well, I tried both PHP and ASP before, and I kinda like PHP better myself
One more question: how to use classes in ASP.Net code on Brinkster? If I just put them with the rest of the code like thisCode:
<script runat=server> Sub Page_Load()... End Sub ... Class MyClass ... End Class </script> ![]() |
|
#9
|
|||||
|
|||||
|
Quote:
|
|
#10
|
||||
|
||||
|
.NET Rocks! I've seen PHP and it is ok but you can do so much with .NET. And you can program your site in Visual Basic .NET, C#, J#, C++, what ever. THe Visual Studio .NET IDE is the best I have ever worked with. But then I've only been programming for a little over 30 years. :-)
I like .NET so much that I went and got a job at Microsoft. But I liked .NET for years before I made the move. |
|
#11
|
|||
|
|||
|
Its not really a valid comparison. PHP is better than old-school ASP, but ASP.NET is an enterprise-capable framework for distributed applications. Its competitor is J2EE, not PHP so much. I can see why you would like PHP over ASP.NET, but there are some killer development tools available for .NET. For the last few years I've been working on a product in VB that uses ASP as the presentation layer. The improvements in .NET are unreal, but ASP still has a place for simple web sites.
Heres an implementation of echo for ASP: Code:
<%@ Language=VBScript %>
<SCRIPT LANGUAGE="Javascript" RUNAT="SERVER">
var ECHO_TOKEN = '%d';
//-------------------------------------------------------------------------
// FUNCTION: echo
// PURPOSE: Writes a message to the Response stream that contains
// embedded data elements to avoid concatenation.
// ARGUMENTS: text - message string to output. embedded tokens
// will be replaced by the non-formal arguments
// passed to the function at runtime, in order.
//-------------------------------------------------------------------------
function echo(text)
{
_echoHelper(text, ECHO_TOKEN, echo.arguments);
return;
}
//-------------------------------------------------------------------------
// FUNCTION: echobr
// PURPOSE: Writes a message to the Response stream that contains
// embedded data elements to avoid concatenation, with an
// extra break tag at the end.
// ARGUMENTS: text - message string to output. embedded tokens
// will be replaced by the non-formal arguments
// passed to the function at runtime, in order.
//-------------------------------------------------------------------------
function echobr(text)
{
_echoHelper(text, ECHO_TOKEN, echobr.arguments);
Response.Write('<BR>');
return;
}
//-------------------------------------------------------------------------
// FUNCTION: _echoHelper
// PURPOSE: Parses a string and replaces token values with elements
// in the args array in order. Index 0 of the array is not
// included. Performs operation without concatenations.
// ARGUMENTS: text - message string to output. embedded tokens
// will be replaced by the non-formal arguments
// passed to the function at runtime, in order.
// token - replacable string
// args - array of values to insert into text
//-------------------------------------------------------------------------
function _echoHelper(text, token, args)
{
var start = 0;
var finish;
var i;
for (i=1; i<args.length; i++)
{
finish = text.indexOf(token, start);
if (finish >= 0)
{
Response.Write(text.substring(start, finish));
Response.Write(args[i]);
finish = finish + 2;
start = finish;
}
}
Response.Write(text.substring(start, text.length));
return;
}
</SCRIPT>
<HTML>
<HEAD>
</HEAD>
<BODY>
<% dim ip: ip = Request.ServerVariables("REMOTE_ADDR")
echo "This page was requested on %d from IP %d at %d", Date(), ip, Time()
%>
</BODY>
</HTML>
|
|
#12
|
||||
|
||||
|
I myself use PHP all the time. Its a simple language that has great integration with mostly any type of SQL server. I have a PHP and web serverr urnning off my computer here right now, it was on windows and now is on linux. I also have a coulple of other places where I use PHP, such as on scriptlance (to bring in some online cash) and helping my friend with his site, plus it's also juts fun to goof around with.
|
|
#13
|
|||||
|
|||||
|
php. why? asp (not going into .NET here) is propreitary, doesn't run on anything but IIS (which means it inherently has security holes) and the syntax is extremely convoluted. i tried learning ASP a while ago, and it set me off the track of hypertext preprocessors (i started using perl for everything. recently discovered that php was alot better for alot of things i was doing.) not to mention that php has unparallelled integration with SQL. like asp, php also has a company behind it (zend) that is pushing development and keeping it organized, but at least zend isn't a coporate money-hogging control freak.
![]() |
|
#14
|
|||
|
|||
|
ASP 3.0 for Sun ONE and Apache
Quote:
http://wwws.sun.com/software/chilisoft/index.html |
|
#15
|
||||
|
||||
|
Quote:
You have to remember that PHP is only for small individual projects, whereas ASP is a professionals language, honestly speaking here guys. Here is a quote from a man who is heavily involved in PHP. Quote:
http://www.edwardbear.org/blog/archives/000189.html So basically it IS a good language. Easy to learn, powerful etc. but if you want something that is universally used, powerful, extendable and PROFESSIONAL check out ASP.NET. MS has powerful and easy to use OS's and languages sure...but thats only when they actually work. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning PHP | Leon Machado IV | Website Design/Showcase | 15 | 20-08-2003 08:03 |
| FREE web design, php, and 3ds max classes | Jeremy_Mc | General Forum | 0 | 31-01-2003 15:42 |
| php vs. perl | Jack | Website Design/Showcase | 20 | 29-12-2002 17:01 |
| PHP File Uploading Scripts | Ian W. | Chit-Chat | 15 | 15-09-2002 17:41 |
| What's better, PERL/cgi or PHP/my_sql? | mikefrei | Programming | 10 | 27-05-2002 22:50 |