Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP -> PHP 2

Status
Not open for further replies.

Rydel

Programmer
Feb 5, 2001
376
CZ
Dear gurus,

I decided to start switching from ASP to PHP for a series of reasons (our company will be having more UNIX servers; I'd like to widen my skills). In regard to that I have two questions:

1) Are there any good tutorials in PHP for those who already know ASP.
2) Are there are tools that translate VBScript code into equivalent PHP code (I have some highly customized ASP code that goes beyond trivial forums, counters, voting or other utils).

Thanks in advance for any help! ---
---
 
I moved from ASP to PHP as well. I picked up Wrox Publishing's "Professional PHP Programming" but didn't even have to read it. It's pretty basic, and frankly much easier to work with than ASP if you ask me. I just went through line by line and looked up what I needed to know.

I've since read the book a couple of times and it has been very helpful (I highly recommend it).

Your VBScript code will be so different in structure than PHP code that I can't imagine something that would translate and get it right with any real accuracy. There might be something out there, though. If your real goal is to learn, there is no better way than to translate from something you already know, yes?

Oh, and if you are at all familiar or comfortable with Perl than learning PHP should be a breeze for you. I've also found PHPBuilder.com to be a good reference. Good luck!
 
There is a script out there that is supposed to help with that, called ASP2PHP, at (there is even a Windows GUI to assist)

I have not tried it myself, so I can't give any input as to the quality of the translation. I suspect that it might be useful, but in the end, you will still be rewriting many things, as you learn more about PHP.

As Glowball says, PHP will probably lead you to structure your code differently (better!) than PHP. You will find that you can often accomplish the same thing in about 1/3 the code it would take in ASP/VBScript. Also, the fact that you will be moving to Unix servers (yay!) will eventually lead you to approach some things differently.

The coolest thing about PHP is that the documentation at the website is so straightforward. And there is a "quick search" facility, where you can just enter the website URL as search term}. For example instantly takes you to the documentation on PHP's array functionality.

A couple of good sites for tutorials:
(the engine behind PHP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top