Forum Moderators: coopster
However now they're toast and I can't find another host offering the same deal at that price I'm pondering biting the bullet and moving to Apache+PHP+mySQL with an ISP I've dealt with in the past.
I figure I can probably turn one of the sites into straight HTML and upload it as a stop-gap measure since there weren't any major interactive dynamic elements, however the other two sites on there were dynamic and interactive and hooking into the database at a few points.
A straight recode from ASP to PHP seems the best approach for the long term, but I don't actually know PHP at this point in time... (cue ominous music) ...I've wanted to learn PHP+mySQL for a while, but never really gotten around to it until now. Is this the perfect opportunity to learn PHP or just wishful thinking?
None of the two sites do anything that tricky - leafing through an o'reilly php book this morning suggests that the majority of the things I'll need are very much do-able (URL parsing, string manipulation, math).
Any thoughts / advice from the PHP crowd? Any of you been in the same boat?
- Tony
A little bit of googling for MYSQL tutorials, PHP tutorials and MYSQL+PHP tutorials and you'll be well on your way to moving over to that instead. I started out using ASP/MSSQL but recently setup a few sites using PHP/MYSQL.. there was a small learning curve but eventually it'll just be like ASP to ya :P
>>Is this the perfect opportunity to learn PHP or just wishful thinking?
I wouldn't say it's the perfect opportunity. The situation is less than ideal in that you have the additional pressure of the site being down while you push through a learning curve. Scripting languages as a whole are quite relative in their feature/function sets. As a matter of fact, compiled languages are as well. It's the syntax and getting yourself accustomed to the docs/manuals/support areas that take a bit more time.
(pause) Feel like I am stating the obvious here ... oh well, worth stating I guess.
The easiest part of any transition is knowing what you want to do so that you can search or ask questions. If you understand the ASP code you will be able to rewrite it in another language. And since you wrote it in the first place then the understanding part shouldn't be much of an issue.
The database queries may need to be tweaked if you used any non-standard SQL. Also, if you didn't use an abstraction layer, you may want to consider it in your redesign.
Any other thoughts...?
Although I'm mostly a basic-oriented programmer I've done a reasonable amount of C work and a little perl too so the general structure of PHP isn't throwing me into total culture shock from what I've seen / read so far - like you say, its a question of getting the commands and syntax down.
Thanks for the suggestions / support ... I'll keep checking back to see if anything new crops up!
- Tony
Still, you're probably in a hurry to get your sites up and running quickly. You might consider translating your applications to Perl since you know that language. Many Unix/Linux hosts offer both PHP and Perl. Then you can learn PHP at a more leisurely pace. (Check out mod_perl if you're interested this.)
Your data would only need to move once, since both PHP and Perl talk to MySQL very nicely.