开发者

Ask SO: Good PHP code to read?

It's quite easy for me to study html/css, as it's openly available.

But I can't do the same with PHP/AJAX (and MySQL). I'm trying to learn both, but there's not much good code to find.

Any t开发者_C百科ips where I can find some (to read and to use)?


Read code to learn? I generally start writing code to learn it after the end of the tutorial. Go to http://www.w3schools.com/ that contain tutorial, sample code and a practice tool for you to write code and test it online.


Try all the tutorials you can find. After you feel like you cannot learn anything from them try and build an application.

You could also get a look at some php frameworks


Read Wordpress, CodeIgniter and CakePHP. Those are very well written.


The best thing to do in my eyes (its how I learned a huge amount intially) is to have a specific task you want to achieve, then break that task into logical steps and try to find information/tutorials to tackle each one. Then use google to pinpoint targetted tutorials (seriously, google is a heck of a resource, dont put it down, its basically an online library).

So, say you wanted a way of uploading a file into a database using HTML, PHP and mySQL - that is your task. The next thing would just be to search for say, 'PHP mySQL file upload tutorial how to'.

Frameworks are great tools for developing your applications, however I would tend to say (personal opinion) that at least initially, it is better to learn straight PHP, the ins and outs, the basic functions and uses. This will help give you the knowledge of how to apply/develop with a framework better as you will understand the advantages it offers relative to straight PHP and therefore how to utilise the framework more efficiently.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜