954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Features in PHP 5

Try/Catch blocks, Private, Public, Protected variables/functions, and more. Import functions through namespaces....finally! This language is reminding me more of C++.

Read more about it here:
http://www.phpvolcano.com/articles/php5/index.php

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

...all available in ASP.NET for over 1 1/2 years!

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

Yes. Available but the source code is not open like PHP. Only thing that comes close is the Mono project, from what I know anyways. I just wish someone in the Linux community made an IDE for PHP/Perl/Python as awesome as Visual Studio. In this area(IDEs), in my opinion, is where Microsoft always wins hands down.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

The Zend IDE is pretty nice, the best I have been able to find yet.

Neo
Newbie Poster
4 posts since Nov 2003
Reputation Points: 10
Solved Threads: 0
 

I've tried the Zend Studio many times over the past couple of years I have been into PHP...

I've never fallen in love with it... and have always turned back to a standard text editor that I've used for a while now. :(

With the time and effort I've had to set up the Zend stuff on a windows system, and get MySQL running, etc., it has ended up being faster for me still to just edit, upload, refresh, edit, upload, refresh... :-|

I haven't tried it lately. (Zend) maybe I'll give it another shot... but the price... I haven't ever liked it nearly enough to drop $250 on it! I know feature-wise that it wins hands down, I've just never went crazy with a ton of features I never use. (IMHO ;))

PHP seems to still be gaining users, programmers, and worldwide recognition at an amazing pace, so maybe in the next year or so, we will see something new hit the market.... Hopefully Open Source!!! :D

himerus
Junior Poster in Training
84 posts since Aug 2003
Reputation Points: 11
Solved Threads: 0
 
...all available in ASP.NET for over 1 1/2 years!


Lol you are REALLY a microsoft advocate aren't you?

rixius
Posting Whiz in Training
233 posts since Nov 2003
Reputation Points: 12
Solved Threads: 3
 

That would make sense after most of the posts I'm reading over. ;)

I'm sure not a huge microSlouch fan myself, but, chances are Bill Gates will someday run for President, win, and plug us all into some advanced MS terminal that resembles the pods on the Matrix. :eek::eek::eek:

LONG LIVE OPEN SOURCE!!!!

himerus
Junior Poster in Training
84 posts since Aug 2003
Reputation Points: 11
Solved Threads: 0
 

:D I was referring to Tekmaven, i forgot to click "Quote Message in Reply"

rixius
Posting Whiz in Training
233 posts since Nov 2003
Reputation Points: 12
Solved Threads: 3
 
:D I was referring to Tekmaven, i forgot to click "Quote Message in Reply"

I knew you were refering to Tekmaven... :) I was agreeing with you... ;)

himerus
Junior Poster in Training
84 posts since Aug 2003
Reputation Points: 11
Solved Threads: 0
 

PHP 5.0.0 Beta 2 released ;)

And yes, the new/improved features of PHP 5 is definitely mouthwatering :D

Gary King
PHP/vBulletin Guru
Team Colleague
417 posts since Nov 2003
Reputation Points: 53
Solved Threads: 5
 
That would make sense after most of the posts I'm reading over. I'm sure not a huge microSlouch fan myself, but, chances are Bill Gates will someday run for President, win, and plug us all into some advanced MS terminal that resembles the pods on the Matrix. LONG LIVE OPEN SOURCE!!!!


LOL Your really an Open Source Advocate are you? There are two sides the street. Your on one, I'm on the other. I totally respect that.

I can see why you love open source, and believe me, some of the best .NET tools are open source. But I feel the features of .NET go above and beyond anything thats in PHP right now. .NET is free, just like PHP. .NET is six times as much documented as PHP. .NET is supported by a respected company, and PHP is totally unsuported.

.NET only runs on Windows (well, until Mono finishes). Thats my only complaint. But, then again, its a Windows world. ;-).

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

Of course lots of non-open source stuff is great, such as Windows, etc. But, things like Linux, PHP, Apache, MySQL, Mozilla/Firebird, etc. are awesome too.

For me, for instance, I like PHP more than ASP, for one reason, because it's opensource :)

Gary King
PHP/vBulletin Guru
Team Colleague
417 posts since Nov 2003
Reputation Points: 53
Solved Threads: 5
 

Why do I prefer programming in PHP than ASP.net, because its a beautiful language and its a logical one. I found ASP.net to be very powerful but not as fun to work with than PHP. I also enjoy the fact that it is a portable language and that there are free hosts and there is a very large friendly community.

nb: a good PHP IDE is Nusphere PHPED

frentchy
Newbie Poster
4 posts since Jan 2004
Reputation Points: 10
Solved Threads: 0
 

I like ASP.NET better over PHP for many reasons, but this has to be one of the greatest: its more optimized. To get PHP to run at its most optimized form, you need to purchase the ZEND Optimizer. ASP.NET code is compiled to the .NET Framework, and its 100% optimized to the fullest out of the box.

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

What langauge do you use with for Asp.net. Is c# better than VB.net

frentchy
Newbie Poster
4 posts since Jan 2004
Reputation Points: 10
Solved Threads: 0
 

You can't quite compare C# with VB.net, they're different.

ASP.NET uses ASP.NET doesn't it?

Gary King
PHP/vBulletin Guru
Team Colleague
417 posts since Nov 2003
Reputation Points: 53
Solved Threads: 5
 

ASP.NET can be written in any .NET language. Personally, I use C#, but its "all ends up looking the same". C# isn't better then VB.NET - its just different. Personally, I prefer it over VB.NET because of the closer relation with Java.

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

VB.NET I like for doing quick jobs, though. I'd much rather prefer C++ over C# :D

Gary King
PHP/vBulletin Guru
Team Colleague
417 posts since Nov 2003
Reputation Points: 53
Solved Threads: 5
 

The syntax between VB.NET and C# is more similar compared to VB.NET and VB6. Most of the languages supported by .NET are OOP. The object oriented methodology has its uses, and I think doing everything, even the most miniscule task, in OOP is a waste. That's why I prefer doing some projects in PHP/ColdFusion than ASP.NET/J2SE.

Of course there are other reasons why I choose a certain language, but I don't want to get into another web language debate. =)

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

I think they decided to take out the feature of referencing functions through namespaces. You can sort of emulate this still as follows:

[php]
<?
class Arithmetic{
function add($n1, $n2){
return $n1 + $n2;
}
function subtract($n1, $n2){
return $n1 - $n2;
}
}

echo Arithmetic::add(4,5)."
";
echo Arithmetic::subtract(35,6);
?>
[/php]

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You