Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP or ASP.NET?

Featured Replies

Hi,

 

For someone who wants to study a server side language which one do you recommend? PHP or ASP.net or both?

 

Regards,

Lee.

I'd personally go with php as well. There are some who learn both, though.

Edited by Pete Prosper

Agree with the others. PHP is likely to prove much more useful to you unless you plan on contracting to large companies with Microsoft infrastructures.

I used to be a ASP developer (not .net) and as it was dying a death i had a choice which language to go with.

 

Weighing them all up in my head it turned out that the majority of work would be PHP based unless, like RD pointed out, you go to work for a large company which already has a .NET architecture.

Not much to add, just a personal experience. I had the same dilemma ~six months ago and started ASP.Net first, but just couldn't wrap my head around it (although C# itself wasn't bad), then switched to PHP and it went much smoother (this is not to say I'm any good at it)

As above in terms of +1 to PHP, its a much better language vs ASP (.net in my case). PHP could also be almost considered the standard these days.

Edited by CSN-UK

I would advice to learn MVC as well for it's content manegement.

For the entire framework you can use MicroSoft Visual Web Devolper 2010 Express program.

Everything is installed and it has it's own mysql/asp server and offcourse you can test your pages.

how is php in comparison to jsp?

also, can someone tell me advantage of php in VERY basic form?

i have seen some but they were talking about things i have no idea about

Like many have said I recommend PHP. I'll try and give some reasoning.

 

First of all, PHP is everywhere. There are plenty of tutorials from beginners to experts, all freely available. From my limited experience of MS technologies, there are many sites out there who want your money first for any kind of knowledge.

 

Of course, this is also a bad thing. There are lots of PHP "experts" providing lessons, but many of these have only been using it for a year, and contain many basic errors.

 

So to start with I'd recommend a good book (try and buy something that's been printed in the last 12 months) and this website: http://www.phptherightway.com/

 

After picking up the basics, try and move on to one of the many PHP frameworks out there. A good one to start is is CodeIgniter, with its excellent documentation, but there are many more.

 

Most frameworks these days use the MVC pattern, which stands for Model View Controller. This splits your code into 'departments': the Controller receives the request from the browser (i.e. "get me /blog/2012/may/how-to-learn-php") and decides what to do with it. It may need some information from the database, so it uses a Model ("get me a blog article with the slug 'how-to-learn-php' published in may 2012"). It will then combine that information with a View (usually a HTML template) and send it back to the browser as a complete web page.

 

PHP has a great community no matter where you look. It's fun to learn programming and it will open doors for you, plus it will put you on your way to learn other languages. You may encounter some with an anti-php view, but haters gonna hate so ignore these for now. It's similar in style to Javascript too, so this will be easier down the line.

 

Good luck!

 

Mei

how is php in comparison to jsp?

also, can someone tell me advantage of php in VERY basic form?

i have seen some but they were talking about things i have no idea about

 

When I'm trying to tell non-geeks what I do I often say I write the code that writes the HTML. PHP basically does that, it takes input X, Y and Z and then displays a web page depending on various bits of logic. As an example, something I did recently:

 

PHP script is called by the user (eg "index.php").

The script downloads a weather report in XML.

The script then searches the report and finds the wind speed and direction and cloud cover

Based on this, plus the time of day, the script picks out the correct background images

The script then writes the web page from a template I've given it, and inserts the pictures.

 

What the user sees:

 

The user goes to index.php

Wow! The web page has the current weather as a background!

The source will look exactly like a normal web page.

 

 

PHP is also custom designed to work with SQL style databases. It supports object orientated programming. It's entirely free. It's very customisable. There's a large repository of modules and plugins to do just about anything (PEAR).

 

Downsides? It's a bit cobbled together, the syntax can change between similar commands. It's very customisable through the config file (php.ini) but many hosts won't let you change it for security reasons (and they're usually right).

I am an ASP.Net developer (use MVC though not webforms). MVC is the future of .Net for web in my opinion.

 

If you are planning to just work freelance etc I think PHP is a good choice, you can see from the replies above how much it is favoured in this case, which provides nice support network.

 

However if you are looking to go into employment, or work as a contractor for corporations .Net is a good choice just because of the pay difference.

 

As a project manager in a big corp myself I had to build a development team for both frameworks, believe me the pay difference in hiring PHP developers against .Net was staggering. From my experinece .Net guys were basically able to command more than double the pay of the PHP guys, the senior .Net devs can earn crazy money.

Edited by Synjyn

My opinion is both have the pros and cons.

PHP is more widespread, and therefore hosting is cheaper, 'cause is increased competition. PHP is often required in companies focused on web. PHP have more documentation. I think PHP is easier to understand. But if you only start with programming, PHP isn't good choice, because isn't really Object Oriented.

You can use PHP and JS together. Combination these different languages (server-side and client-side) is not only possible but very common too. So, possibility cooperation with ASP.NET and Javacsript is unnecessary.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.