I
I
Infinite2011-07-14 15:32:12
PHP
Infinite, 2011-07-14 15:32:12

PHP Programming Practice

Dear Habravchan, I started learning PHP and there was an urgent need for practice. Who coped with this, where to get good tasks for the entry level and not only?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
H
Horzerus, 2011-07-15
@Infinite

If you can make the sorting of the array "bubble", then move on. If not, then figure out the simplest work with arrays and do this sorting.
Make a simple site (not static, but with a database).
And make it more complicated by attaching:
- an admin panel for adding, deleting and editing pages (the practice of basic simple queries to the database)
- register and authorize on your site (the practice of working with $ _POST and $ _GET, sessions, cookies)
- make sure that the pages can be nested within each other and so that you can change it in the admin panel on the parent page. Display the page tree on the site. (learn the basics of "trees", recursion)
- make a form for uploading a file (practice of the simplest work with files)
- make the picture upload and scale (practice of working with the GD library for working with images). You can try captcha by the way.
Then read what MVC is and you can remake everything for this design pattern.

V
Vitaly Zheltyakov, 2011-07-14
@VitaZheltyakov

I know that I will get a lot of minuses, but still ...
"You need to start with an easy project" is the worst advice for beginners.
When solving easy tasks, the brain is sharpened for easy tasks. And as soon as the programmer, after such an “easy” training, is faced with a really difficult task, the whole structure of thinking breaks down and you have to learn almost from the beginning.
I was once taught by gurus - "Solve problems in which the devil himself will break his leg, only in this way will you learn." I checked this advice for myself and completely agree with it. Only solving complex problems really teaches.
Choose a difficult task (to write a social network engine, a browser game, a portal, etc.) and work on it.

N
NonRealDeveloper, 2011-07-14
@NonRealDeveloper

Usually novice php-programmers write their own guest book.

N
nill, 2011-07-14
@nill

Write small projects for yourself. For example, make a poor image hosting or your own blog.

F
Fastto, 2011-07-14
@Fastto

Recently, someone wanted to make "cards" in php for learning English, but changed his mind, go for it :) a couple of tables, a minimum of layout. Or come up with something interesting so that interest does not disappear immediately - for example, a game of tic-tac-toe with saving the results in the database - let it be done in stages, at the same time you will touch the styles of both js and php and sql.
Well, or in the end, the easiest and most useful thing you can think of is to program some kind of psychological test in a few steps - i.e. each question is a new page.

W
Wott, 2011-07-14
@Wott

Take any CMS - the first one is better smaller and make a site on it - “like that one”.
Then take another, third - you will figure out how everything works, see how people write (watching the code inside the CMS is a must) and at the same time you will get valuable knowledge about the products and your opinion about them.

K
Kindman, 2011-07-15
@Kindman

The best practice is to write automated tests.
What exactly to test is a matter of taste. You can start by "testing" the search engines.

D
diews, 2011-07-14
@diews

Write a website for yourself :) Then place your portfolio and contacts there.
In principle, it is not very difficult and useful :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question