Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   PHP or .Net (https://www.warriorforum.com/programming/289745-php-net.html)

sanjay1234 20th November 2010 07:44 AM

PHP or .Net
 
Hi

I am new to this online media and I want to know that which language is better PHP or .Net to create a dynamic website.

Kindly do let me know.

orvn 20th November 2010 09:44 AM

Re: PHP or .Net
 
They've both got their pro's and con's.
While most people seem to boast about PHP's superior capabilities, their opinion is biased.
I my experience, these platforms are about equivalently advantageous.

ASP.NET tends to be more expensive to develop in, as there are less programmers available. Conversely, if you are a programmer, you get paid better.

If you have programming experience in C or VB, the transition to ASP should easy for you. The Visual Studio interface is very pleasant. Visual studio also comes with this massive class library and a great deal of third party components easily available.

.NET runs on a Microsoft platform (Server IIS) and PHP runs on Unix (generally apache).

I've always found more community support available in PHP: it's open-source and community driven.

I'm not going to get into the details of server side includes, MLIS or the security issues, as these points are highly arguable.

Conclusion:
It's a matter of preference.

I almost always pick PHP, because I frequently side with unix based technology (I'm a command line pro), and, in my opinion, the servers are easier to manage and more secure (highly arguable).

Also, I think Microsoft has been slightly lacking in vision this decade.
I never liked .NET, but my opinion is highly biased.

CyberSorcerer 20th November 2010 11:37 AM

Re: PHP or .Net
 
It all depends on what you intend to use the language for or what industry you're going into.

For example, if you want to be a freelance web designer/developer then it has to be PHP simple because it's the mostly widely requested service in the freelance market if your on oDesk, vWorker, Elance, etc.

If you're looking for a broader appeal as in job request boards .NET would do you good because it can be used both for web development and application development which is what a lot of design firms are looking for.

So as always it depends on your goal and the direction you're planning on going. Think career wise. What is it you want to do for the next 20 years?

CyberSorcerer

Johnny12345 20th November 2010 12:15 PM

Re: PHP or .Net
 
Quote:

Originally Posted by sanjay1234 (Post 2895043)
... which language is better PHP or .Net to create a dynamic website.


That's a difficult call to make...

The short answer is that they're BOTH excellent. I've used both ASP.NET (using VB.NET) and PHP. (The main reason I learned PHP is because it's used in WordPress.)

I love Visual Basic.NET. It's actually fun to write programs with it. And a HUGE benefit of using .NET is that the programming techniques for either the web -- or the desktop -- are extremely similar. You can't write desktop programs with PHP.

That said, PHP may actually be a better choice for first-time web developers. PHP makes it a lot easier to work with files and includes (called "user controls" in ASP.NET) -- and you'll probably use them a lot.

In addition, there are many excellent books on PHP and the user base is large and helpful.

Regards,

John

jennifersmith006 23rd November 2010 04:17 AM

Re: PHP or .Net
 
Php i guess as it is simpler then .net and now a days most of the corporate world use php ..

Tashi Mortier 23rd November 2010 11:31 AM

Re: PHP or .Net
 
I guess PHP is the better choice for a beginner since you can use it completely free.

There are excellent free IDE's available and the complete Server stack is free, also nearly every host provides PHP.

ASP.NET usually requires a windows server and the Visual Studio IDE which are both pretty expensive.

I guess unless you are told to develop for a Windows Server or you want to have access to the power of the .NET framework you are better off with PHP.

lecter 23rd November 2010 02:13 PM

Re: PHP or .Net
 
Go with PHP because you will have an easier time finding people who can help you develop the website and it's also a lot more portable than .NET.

With PHP you are basically up and running right away. All you need is an apache server with PHP and MySQL and you are ready to go. There are complete bundles with all of this included so you don't even need to download all the individual components separately.

XAMP is a good example of such a bundle. You can download it here: www dot apachefriends dot org/en/xampp-windows.html#641 (sorry, unable to post links yet).

Personally I choose PHP because it's so much simpler. The only case when you really would want to use .NET is if you are building a corporate portal which will be using a lot of internal backend code written in .NET.

Otherwise go with PHP :)

PS. For adding truly dynamic effects to your PHP website you might want to check out jQuery at jquery.com. What you do then is design the backend code in PHP, output the website html to the web browser and then add all the dynamic effects in JavaScript while loading data on demand from PHP scripts located on the server. This way you can do all the facebook and twitter style real time updates right inside the browser window without having to reload the page.

So PHP, jQuery, MySQL and Apache is what you basically need to build a truly dynamic website.

sohanderaz 24th November 2010 03:37 PM

Re: PHP or .Net
 
PHP is a relatively simpler language to use than ASP.net. Initially, PHP was written in the C programming language to replace a set of scripts in Perl. That is the reason why coding in PHP remains simple even today. Many developers find themselves to be more at ease with the user-friendly nature of PHP when it comes to coding.PHP is has much better support for the database management system, MySQL. In fact, the very popular blogging platform, WordPress uses the formidable combination of PHP coding on MySQL for its content management system, which includes about hundreds of thousands of blog posts every single day. Another very popular and frequently updated service that uses the combination of PHP and MySQL is Wikipedia. People who use both PHP and ASP.net also maintain their opinion that PHP is better for embedded support with another database management system, viz. SQLite.

dexcell 24th November 2010 04:16 PM

Re: PHP or .Net
 
Go with PHP and use PHP framework to boost your coding time, i recommended Kohana framework. Search it on google.

telltimmy 20th December 2010 06:15 AM

Re: PHP or .Net
 
Although php is easy,free and open source but I personally prefer .net due to its multilanguage support,better error handling,better separation of design and business logic and its support for AJAX.

soma56 20th December 2010 05:47 PM

Re: PHP or .Net
 
Alot of the replies stole my thunder. I think some great points were made, however, my two cents is biased and hands-down PHP. It's fast, widely accepted and there's a ton of tutorials and online support.

stevearn 20th December 2010 10:25 PM

Re: PHP or .Net
 
PHP is the best.easy,free and open source
PHP for web applications
PHP for command line scripts

johnclave123 21st December 2010 03:28 AM

Re: PHP or .Net
 
i use php and i think its better

bytecoder 21st December 2010 06:01 AM

Re: PHP or .Net
 
I'd recommend PHP for 2 reasons :
1) .NET requires more expensive hosting
2) PHP is a lot more script, ASP.NET is a programming language for web, a lot more messy for my opinion.

Of-course if you're a pro-programmer and you're willing to do big sites / ecommerce stuff you may prefer .NET by far :)

bobbylee 21st December 2010 06:35 AM

Re: PHP or .Net
 
PHP is easy and can be learned fast.
if you learn PHP framework like Zend framework,CodeIgniter etc then you will be rewarded more.

Drewry_Media 21st December 2010 06:36 AM

Re: PHP or .Net
 
It's better to go along with .php, because it is a powerful search engine scripting language, and can also bring you way more search traffic for free.

jamesyalbery 23rd December 2010 06:28 AM

Re: PHP or .Net
 
I programmed in both PHP and ASP and can not really say what is "better." It's one of those "ninjas or pirates' issues. For every person that says PHP is better, there will be another person who says ASP is better. Try each and see what suits you best.

profolies 23rd December 2010 08:42 AM

Re: PHP or .Net
 
PHP is the best option. Iam myself an asp.net developer and know PHP a little bit too. I personally prefer .net but only i know what kind of hell it is. For beginners PHP is the best method.

faceblogger 23rd December 2010 10:17 AM

Re: PHP or .Net
 
PHP is the best. Easy to program, host, etc. And .NET is not free

brian culbert 24th December 2010 03:17 PM

Re: PHP or .Net
 
It all depends on what you would like to do in your project. I think PHP is easy to learn but not as flexible as .Net, but first you must know what environment you will work at. you must know kind of server you will host you media at. it will determine everything.

nsdoi 29th December 2010 04:00 AM

Re: PHP or .Net
 
Hello....

It is very difficult to say that which one is best....but i personally prefer ASP.NET. because it strongly follows the OOPs concept.

ri12ku2002 29th December 2010 04:12 AM

Re: PHP or .Net
 
I am using both of them as per client's requirement but I have to choose one of the two i would go for php

veryshant12 29th December 2010 01:07 PM

Re: PHP or .Net
 
I am truly agree with CyberSorcerer. Both language have their pros and cons.As a freelancer point of view PHP is in more demand.

FabianSmith 3rd January 2011 03:53 AM

Re: PHP or .Net
 
PHP go with it blindly )

zeeshi570 4th January 2011 12:54 AM

Re: PHP or .Net
 
PHP open source matters

Kaththie 4th January 2011 01:02 AM

Re: PHP or .Net
 
As a .net developer I prefer .NET. Because ASP.Net has all latest web development technologies and it’s easy to learn and understand for beginners.

techmagnet 4th January 2011 05:55 AM

Re: PHP or .Net
 
PHP is more secure.
ASP.NET is faster than PHP4.
PHP5 and ASP.NET perform about the same.
ASP.NET is known for exploits when running on IIS.
PHP is cross-platform.
ASP.NET is windows only.
PHP is free and less costly to use.
ASP.NET web hosting is very expensive.

It really depends on what you want to do. What will be the size of this eCommerce site?

For larger sites, ASP and Microsoft SQL are your best bet.
MySQL is not suitable for large websites unless InnoDB or Merge tables are used, as well as proper database design.

jonehill 4th January 2011 03:07 PM

Re: PHP or .Net
 
PHP is one of the best for web developing.PHP is easier to learn and is more compatible with different web servers.It is server site scripting so it takes minimum time for loading.
PHP programs can also run in Windows, Solaris, Unix and Linux.

Senesoft 4th January 2011 07:42 PM

Re: PHP or .Net
 
A lot of very good points here, but I'll offer my thoughts.

1) ASP only runs on Windows. PHP runs on Windows and many flavors of unix. I prefer to run my back end servers on Linux because it's simply more secure than Windows. A properly configured Linux/BSD/Unix box will be much more difficult to hack. Having said that there are always security advisories for every OS, Windows just usually has more of them.

2) ASP is more expensive. You'll need a windows server for your production environment, plus I would lean towards the fact that the Unix server tend to be a bit less resource hungry than Windows. To gain the advantages of a rapid application development environment in ASP, you'll have to shell out some bucks for Visual Studio.

3) I much prefer Apache over IIS. I know the playing field is becoming much more even these days, but traditionally, Apache could handle load better than IIS.

msforum01 10th January 2011 12:01 PM

Re: PHP or .Net
 
PHP, much easier to learn than .Net, partly because it requires no adherence to a particular programming style. :)

Peter01 10th January 2011 12:51 PM

Re: PHP or .Net
 
I am a big fan of PHP. It's easy to transition from hacking with wordpress to writing full PHP code.

Bellasys 10th January 2011 01:31 PM

Re: PHP or .Net
 
In my opinion, .net is outmoded by several other solutions. Personally, I really dislike PHP and .NET equally, but why? I don't like PHP's structure and syntax, but there is strong appeal if it fits within your scope of programming skill; it is relatively easy to mix HTML and database functions/views, processing AJAX, etc. I'm saying the environment is easy to get into. Most lesser expensive Hosts will support PHP better than .NET... and yet .NET may have some performance advantages in HIGHER LEVEL applications. IMO, if you're just starting, or just building your suite of protocols and applications, PHP is going to produce better results for you, whereas the benefits of .NET produce long term and at a higher level. If you're considering .NET, why not consider Ruby?

siddharthslm 11th January 2011 03:36 AM

Re: PHP or .Net
 
PHP is always simple, easy, and best :)

erinsmith 11th January 2011 05:00 AM

Re: PHP or .Net
 
for my suggestion is PHP ... buz it's very easy implementation when you are creating dynamic website

rosesmark 31st May 2011 02:29 AM

Re: PHP or .Net
 
Mostly website developer prefer PHP because PHP is the best programming Language for developer

amans54 31st May 2011 07:27 AM

Re: PHP or .Net
 
Well both the languages are having their own importance.Sometimes ASP.net looks good and sometimes php but i would prefer asp over php because asp provide results for long term.ASP is more safer than php.But some drawbacks are also their while using it.First one is that it is quite expensive as compared to the php and the other one is the working operating system.ASP works only on windows but php works on windows as well as some other kinds of operating system

moonheart 31st May 2011 07:39 AM

Re: PHP or .Net
 
I will vote for PHP. It is very easy to learn PHP with the help of online resource. The best thing is that all the CMS like wordpress, joomla, drupal, oscommerce are built in PHP. As a begineeer I will say that I start PHP after working with CMS based website.

derekad 31st May 2011 09:40 AM

Re: PHP or .Net
 
I vote for php

all of my sites are written on php

it also depends, because I started from php, I can now reuse some code for new sites

PeachCoding 31st May 2011 10:49 AM

Re: PHP or .Net
 
If you're new to both languages I do recommend going with PHP as it'll be easier to learn, it will have way less hosting & coding tool costs.

Plus it has better community support behind it, so you will always find answers easier for questions you have about it.

jasonthewebmaster 31st May 2011 10:52 AM

Re: PHP or .Net
 
Quote:

Originally Posted by sanjay1234 (Post 2895043)
Hi

I am new to this online media and I want to know that which language is better PHP or .Net to create a dynamic website.

Kindly do let me know.


If you are not going to be the one programming... should it really matter?

Go with whichever is cheaper to hire developers to use and can do your job faster..

which is PHP by the way ;) LOL!

mattleaconsulting 31st May 2011 02:42 PM

Re: PHP or .Net
 
I live, eat, and breathe PHP. Also if your taking frameworks I might recomend QCodo/MJax. QCodo is a great back end and MJax offers jQuery support for the front end.

Disclaimer I am a big contributor to both.

.Net is good if you like killing brain cells. JK

DragosRoua 1st June 2011 02:03 AM

Re: PHP or .Net
 
I'd go with PHP because it has a better community support. Also, there are a lot of frameworks available for it (a framework is a collection of ready made pieces of functionality that makes your life as a programmer much easier). I've been working with PHP for about 12 years now and that says a lot about the maturity of the language.

dottieford 1st June 2011 09:48 AM

Re: PHP or .Net
 
For me its php.. Since u are a beginner it's the best to use php..
Using net is expensive..They only the same in purpose for me..But I rather to choose the php..Try it..

rbrtst 3rd June 2011 05:55 AM

Re: PHP or .Net
 
Go with PHP unless you enjoy pulling your hair out and a huge timely learning curve. Anything PHP you need is just a google search away. I'd recommend using easyPHP for local Windows development. With PHP you can have something online in a weekend, with .NET that's less do-able.

hilarious89 4th June 2011 08:11 AM

Re: PHP or .Net
 
I prefer .Net over PHP.

ToneUK 10th June 2011 07:19 AM

Re: PHP or .Net
 
Another vote for PHP :)

I've worked with both ASP.NET and PHP and I find PHP is much easier to work with. No need for expensive Windows hosting and there is a huge community of PHP developers. With PHP you can choose from a huge range of development environments or even use notepad. With ASP.NET you require visual studio which is another cost if you go for the full version.

If you do decide to go with PHP then I would recommend using a framework once you have learnt the basics. This could be Zend Framework, Codeigniter, CakePHP or even use Drupal CMS and learn module and theme development.

hawaiiwebdesigner 11th June 2011 01:00 AM

Re: PHP or .Net
 
PHP all the way!

Fuze 11th June 2011 03:43 AM

Re: PHP or .Net
 
PHP is my favourite. It's simple and loosely typed.
Try PHP first.

st8ic 12th June 2011 01:18 PM

Re: PHP or .Net
 
php for sure, it's an open standard.

ionisis 12th June 2011 08:35 PM

Re: PHP or .Net
 
It also depends on what your needs may be for custom functionality. It is accurate to say there are far more php programmers than .Net programmers, so it will be easier to find someone to develop a complex custom feature with php. There may also be limitations to the .Net framework that do not apply to php. For example, try programming a .Net website to transcode video --it's not happening ;)

Php is slower, unless your server admin knows how to make it fast; and in that case, it can be FASTER than .Net.

We recommend php.


All times are GMT -6. The time now is 05:14 PM.