General question about PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
w3stfa11
Forum Newbie
Posts: 2
Joined: Thu Sep 21, 2006 12:56 am

General question about PHP

Post by w3stfa11 »

I have to create an online gradebook for a project for one of my classes. We can use whichever language we want. I was at first thinking of doing it in PHP, but some of my classmates mentioned they were going to use ASP .NET. So, I'm stuck. Would PHP be a good candidate for this type of project? Are there any frameworks that would help? How would it compare with ASP .NET? I don't know either language very well, but I do know C++ and Java and the very basics of C#. I could really use anyone's advice on this.

Thank you.

Edit: I forgot to mention, I will also be using a database, either mySQL or MS SQL Server.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

You have to know the responses you're going to get on a site called "php developer's network" are going to be a little biased to say the least :wink:
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

You'll pick up on PHP really fast.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

If both options were 'free' I'd chose ASP.NET. Because they are not, PHP.
w3stfa11
Forum Newbie
Posts: 2
Joined: Thu Sep 21, 2006 12:56 am

Post by w3stfa11 »

I thought ASP .NET was free?

edit: nm, you mean free as in free speech.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

w3stfa11 wrote:I thought ASP .NET was free?

edit: nm, you mean free as in free speech.
He did, but for the record ASP.NET generally only runs on Windows servers* so there is always a licencing cost implication.

* There's Mono, but I'm not sure thats really up to a production environment rollout yet.
alvinphp
Forum Contributor
Posts: 380
Joined: Wed Sep 21, 2005 11:47 am

Post by alvinphp »

Well, you are asking if you should do PHP or .NET in a PHP forum. Unless you asked this same question in a .NET forum you seem to have already made up your mind. Since you say you know Java why don't you build it in that language using JSP/Servlets?
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Re: General question about PHP

Post by AKA Panama Jack »

w3stfa11 wrote:I have to create an online gradebook for a project for one of my classes. We can use whichever language we want. I was at first thinking of doing it in PHP, but some of my classmates mentioned they were going to use ASP .NET. So, I'm stuck. Would PHP be a good candidate for this type of project? Are there any frameworks that would help? How would it compare with ASP .NET? I don't know either language very well, but I do know C++ and Java and the very basics of C#. I could really use anyone's advice on this.

Thank you.

Edit: I forgot to mention, I will also be using a database, either mySQL or MS SQL Server.
I have had the misfortune to program in ASP and let me say the language was created by a dyslexic idiot. But then again it was created by Microsoft so what should I expect. :D

For the most part the language doesn't make much LOGICAL sense in the syntax. While PHP is very close to C++ and far easier to follow and use. The other big problem I had with ASP is how the server would error out when interpreting the code for no reason. Refreshing the page would cause it to work. This was on a major server farm running IIS.

Honestly if you want EASE of use and a far more STABLE environment you will program in PHP and avoid ASP like the Black Plague. I would NEVER consider ASP.NET to be an Enterprise environment no matter what Microsoft says.
playuk
Forum Newbie
Posts: 4
Joined: Wed Sep 20, 2006 10:28 am

Post by playuk »

I did an amount of dev in ASP.NET using C# a while ago. There are positives and negatives to the language. As AKA Panama Jack says you do get some cryptic error messages with ASP and some of the ways in which you have to do things are a bit backwards. In its defence it can be a lot quicker for getting a web application off the ground. I also found it let hasstle to write error handling routines because there are already structures built into the programming environment itself. An example of this is the validation controls for forms.
acidHL
Forum Commoner
Posts: 41
Joined: Wed Dec 07, 2005 7:38 am

Post by acidHL »

I had a play with ASP.NET recently (writing in C#).

Is it me or does the form validation only work in IE? That put me off right away. 8O
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

Well ASP is a Microsoft product. ;)
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post by panic! »

I've had the fortune of using ASP and it sucked, for example having to buy a module to use file uploads...Might be different in .net, I don't know.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

.NET is a lot different to classic.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: General question about PHP

Post by timvw »

w3stfa11 wrote:I have to create an online gradebook for a project for one of my classes. We can use whichever language we want. I was at first thinking of doing it in PHP, but some of my classmates mentioned they were going to use ASP .NET. So, I'm stuck.
I was thinking about crossing the river by walking over the bridge... But some of my classmates mentionned they're going to use a boat and peddle to the other side... Who cares what they do? Does it influence your choice? Or where you hoping for a free ride in their boat?
w3stfa11 wrote: Would PHP be a good candidate for this type of project?
Why where you thinking of doing it in PHP if you don't event know PHP well enough to judge about it's powers and flaws...
w3stfa11 wrote:
Are there any frameworks that would help? How would it compare with ASP .NET? I don't know either language very well, but I do know C++ and Java and the very basics of C#.
Imho every language has it's set of libraries that allows you to build a simple webapplication. I would advise to use whatever language you're most familiar with. I'm convinced that it will get you at the other side in no time.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post by panic! »

Jenk wrote:.NET is a lot different to classic.
I stand corrected!
Post Reply