10 Replies - 1786 Views - Last Post: 17 August 2010 - 04:12 PM Rate Topic: -----

#1 Faray   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 28-August 09

Going from ASP to PHP

Posted 13 August 2010 - 06:56 AM

Ok this is more of a general php question rather than a specific one so I hope this is the spot for it.

I've been building this page for some time in asp. Its taken about 2 years total, but it's been an off and on thing (I'd work on it for a few days, then not come back to it after a month or so). However out of the blue, they want me to change the whole thing to PHP. I have yet to use PHP at all. How hard is it to pick up PHP and use it when using everything in ASP. Is it easy to pick up and learn? Or will I be in deep trouble?

Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Going from ASP to PHP

#2 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3837
  • View blog
  • Posts: 13,998
  • Joined: 08-August 08

Re: Going from ASP to PHP

Posted 13 August 2010 - 07:00 AM

PHP is easy to learn, especially if you know any other languages.
Was This Post Helpful? 0
  • +
  • -

#3 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12769
  • View blog
  • Posts: 45,954
  • Joined: 27-December 08

Re: Going from ASP to PHP

Posted 13 August 2010 - 05:35 PM

View PostCTphpnwb, on 13 August 2010 - 10:00 AM, said:

PHP is easy to learn, especially if you know any other languages.

Emphasis on languages that have syntax similar to C like C++, Java, and C#.
Was This Post Helpful? 0
  • +
  • -

#4 ShaneK   User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: Going from ASP to PHP

Posted 14 August 2010 - 07:37 AM

View Postmacosxnerd101, on 13 August 2010 - 05:35 PM, said:

View PostCTphpnwb, on 13 August 2010 - 10:00 AM, said:

PHP is easy to learn, especially if you know any other languages.

Emphasis on languages that have syntax similar to C like C++, Java, and C#.


Which ASP does not, since it's all Microsofty.

Overall, I enjoy PHP much more than ASP. You'll find some things easier to do, and probably other things...different, but I've always liked PHP and when I was forced to learn ASP last year, I had a hard time adjusting my coding habits to be appropriate. It might take a little time to get used to, but who knows? You could end up in love.

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Going from ASP to PHP

Posted 14 August 2010 - 08:19 AM

Going from ASP to PHP shouldn't be a problem, it would be even easier if going from say ASP.NET using C#.

As far as things being easier with PHP, another member and I did a test on this, and for the most part it took me less code in ASP.NET to accomplish than it took him in PHP code. Which I can program in both ASP.NET and PHP, I do, for the most part, find ASP.NET w/C# much easier to read (but that's just personal preference)
Was This Post Helpful? 0
  • +
  • -

#6 moopet   User is offline

  • binary decision maker
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,190
  • Joined: 02-April 09

Re: Going from ASP to PHP

Posted 14 August 2010 - 08:27 AM

On the plus side you'll be learning a language you can use on most of the servers on the internet.
Was This Post Helpful? 1
  • +
  • -

#7 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Going from ASP to PHP

Posted 14 August 2010 - 08:35 AM

For the record you can run ASP.NET sites on a Linux server, just use mod_mono
Was This Post Helpful? 1
  • +
  • -

#8 moopet   User is offline

  • binary decision maker
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,190
  • Joined: 02-April 09

Re: Going from ASP to PHP

Posted 14 August 2010 - 08:42 AM

But ASP != ASP.NET. At least so far as I know. I've never managed to get past the dry-heaving, retching stage of learning ASP to find out :P
Was This Post Helpful? 0
  • +
  • -

#9 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Going from ASP to PHP

Posted 14 August 2010 - 08:47 AM

Yeah you're right there, and ASP is horrible to work with I must say. I still have nightmares from those days
Was This Post Helpful? 0
  • +
  • -

#10 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4278
  • View blog
  • Posts: 13,573
  • Joined: 08-June 10

Re: Going from ASP to PHP

Posted 14 August 2010 - 06:08 PM

View PostPsychoCoder, on 14 August 2010 - 03:19 PM, said:

As far as things being easier with PHP, another member and I did a test on this, and for the most part it took me less code in ASP.NET to accomplish than it took him in PHP code.

IMO, that extremely depends on your PHP skills. as far as I know (ok, not very much) in .NET languages you have a large amount of predefined classes to use compared to PHP, where you would have to write them yourself (from my personal experiences I can write a complete database request (including output) in PHP with a handful of lines and some DB classes in the background)
Was This Post Helpful? 0
  • +
  • -

#11 mattc   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 22-September 09

Re: Going from ASP to PHP

Posted 17 August 2010 - 04:12 PM

It's taken that long to write it in ASP? Sounds like you should have switched languages about 2 years ago.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1