I read that some use modular programming using the PHPNuke script. But this method is not very good in terms of speed.

I am not an expert in the field of writing sites. My first site was on html and used a simple method without any gadgets. Each page was described individually.

Starting to learn PHP learned that he eats a lot of scripts. I do not want to repeat the mistakes of the past and write the site is not correct. Tell me what style, method, or even better to use to write a normal site. You can specify links to some sort of good script.

    3 answers 3

    Begin by learning simple functions like echo , learning how to create your own functions with function and learning if else conditional constructs. For a start, I think this will be enough; having played around with them, proceed to the study of arrays and superglobal arrays.
    For reference there is a wonderful site .

    • Frankly, I know all this. Even at the dawn of computer, he studied Basic, Fokal, Fortran, Assembler for 286, Java2. Decided to learn PHP. There is little in this language. Who knows a few languages ​​will understand me. But in designs a bit behind. I agree that taking a ready-made template and making yourself a website is stupid. Moreover, I am not satisfied with the ready-made templates, and I still redo everything for myself. But why reinvent the wheel. You can simply take and correct. I'm not looking for a template. I'm looking for style. - Monstrs-Inc
    • the fact of the matter is that style is its programming. how you impose blocks + how you can make a pattern of them + how you make a kernel that can use your template and work the way you want it. this is site creation. and when you create this, you yourself will understand that it is much nicer than the use of other people's CMS (ready-made sites that just need to be set up and everything)
    • This is yes! But I am new to PHP and I cannot yet know the capabilities of the language. The block system is not bad. I used frames in html. And as it believed that the blocks would be nice, but in the internet they said - tupit. So I ask, what other ways are there. It’s possible to use databases instead of blocks. - Monstrs-Inc
    • Moscow was not built in a day. - Andrey Arshinov
    • Frames I made my first site it was 11 years ago, probably back and maybe more. Blocks do not stupid, I do not know who could say this to you at all. just first, people make frames with tables and then only blocks when they understand layout normally. next is the update of the blocks via AJAX and so on. in any case, until you try everything yourself. Nothing you can understand - Grimon

    In general, I advise you to develop the algorithm itself learning PHP. otherwise, you will not be a programmer but a third party CMS programmer.

    • Already come up with algorithms. And I still can not think of anything, I look and compare ready-made CMS. It’s necessary to remake your website from html in PHP. I would like to start to learn about any advanced technologies. And start working with them. - Monstrs-Inc
    • for this just take any CMS and make it a template on the basis of any of your page and everything. but you never learn to write your own. - Grimon September
    • Anyone not interested. I want a good ...))) And whatever the template, it’s still necessary to redo it. But the meaning of the idea will remain. If he is worth it. - Monstrs-Inc
    • There is no panacea) There is something for everyone)) For example, Joomla and many are happy with it. others are sitting on php-fusion and so on. for the Internet shops, too, their own. and everyone will praise what he uses and knows how to set up)) I’m closer to writing sites and modules)) - Grimon
    • I now also began to rewrite my site myself, and it turns out the block system. This is where I thought about, and what does a block do best? How do you write sites? Apparently, too, in blocks? - Monstrs-Inc

    Try to deal with the Zend Framework . This framework is designed by the creators of the PHP language. I believe that its use not only helps to learn the language, but also teaches us to write high-quality, easily supported code.

    PS In general, if there is an opportunity, grasp better Python instead of PHP. It seems to me that Django can solve all your problems.

    • This is yes. I agree. But I don’t think you need to quit PHP. Immediately after all not hijacking. I don't need much time to learn PHP. Then I will do Python. - Monstrs-Inc
    • I remember in my time Java2 was also advertised, but in fact it turned out to be a dead-end language. - Monstrs-Inc
    • Python - the main programming language in Google! I think it means something. - nano
    • Did not hear that servers work with Python. But to argue is useless. Anything can happen. I am still learning Lisp. After all autoCad on Lisp is written. - Monstrs-Inc