开发者

Good resources for experienced web developers moving to PHP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

Good morning, all.

I've been doing websites now for about seven years (most of which have been in ASP.NET, but some just HTML) and I'm getting ready to 开发者_如何学JAVAmake the move to PHP for my next project. Can anyone suggest some resources and/or tutorials that are more than the usual Hello World kind of thing?

Specifically, any guidelines on code re-use like the ASP.NET equivalent of MasterPages, UserControls, etc.

Thanks in advance, Matt


As a 5 year PHP coder that has yearned for the liberation of a "better" platform such as ASP.NET, I bid thee good luck.

By itself, you have nothing like MasterPages, UserControls, page execution cycles, handlers, etc. PHP is much more like ASP classic in that the script starts at the top and ends at the bottom. Everything in the middle can be anything you like, and if you want the kind of structure that ASP.NET offered you, then you'll have to implement it yourself.

As soon as you figure your way around the basics, get over the massive lack of organization of the standard library, accept that the bolt-on OOP is a bit clunky, learn to accept PHP for the monster that it is, and still at this point actually want to use it for something serious, you should look into a pre-made framework such as Zend or Codeigniter (among others) that try to get most of the plumbing out of your way.


Matt,

Reference:

http://php.net

Environment:

XAMPP

WAMP

Tutorials:

One PHP.net

On w3schools

Web Frameworks:

Symphony

CodeIgniter

CakePHP

Also consider checking out Python and Ruby as alternatives for web development. They are more powerful than PHP since you can utilize them also for desktop apps and maintainance scripts, where is while it is possible to do in PHP, it's highly undesirable.

Ruby

Python


For your "specifically" part, you want to step away from raw PHP and spend some time playing with one of the numerous frameworks that spawned to overcome PHP's lack of RAD features.

http://cakephp.org - http://www.symfony-project.org - http://framework.zend.com

They all have their own slants on templating (all frameworks do) but none (and this extends outside of PHP) follow the same ideas as Microsoft. Server and User controls are fairly unique techniques.

As I said in my comments, they're nowhere near as clean as "proper" web frameworks (django, rails, even webpy etc) but they do work a lot better than just hacking away on your own.


As Oli mentions in the comments, PHP by itself is missing a lot of the structure you may be used to. There are a number of PHP frameworks that help solve this problem.

Symfony (http://www.symfony-project.org/) is somewhat similar to Rails / Django if that's what you're used to.

Zend Framework (http://framework.zend.com/) is a much more open form solution, but better for certain projects.

That said, if you're diving into PHP by itself, the manual on http://www.php.net is fantastic. I downloaded it and keep a link to it in my quicklaunch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜