P
P
pers13072015-10-18 20:58:01
PHP
pers1307, 2015-10-18 20:58:01

Need a Code Review?

Hello!
Guys, I need Code Review. I am a beginner in web programming, I wrote a simple 3 page blog. We need feedback on the quality of the code, the project and everything. So that I can raise my skill in the next project.
I attach a link to the blog:
https://cloud.mail.ru/public/699V/5r1szrcLs

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
index0h, 2015-10-18
@pers1307

1. The .idea directory should be ignored
2. MVC - readable and usable.
3. PSR-1, PSR-2, PSR-4 - read and use.
4. For good, require in your code should be 1 time when connecting the autoloader.
5. Mixed html + css + js - this is guano))
6. In your code, alas, there is nothing to save.

C
Cat Anton, 2015-10-18
@27cm

Archive? .. On the mail? .. Say that you were joking.
Always amused by such copyright shitcoders:

<div id="footer">
    <p>&copy; Дизайн - собственность Перескокова Юрия</p>
    <p>&copy; CMS - собственность Перескокова Юрия</p>
</div>

It's true, why is that?
Gorgeous, just no words:
class Get_Set_DB_Class
    {
        public function ConnectForDB()
        {
            $mysqli = new mysqli("mysql.0hosting.me","u509998950_pers","13071992","u509998950_blog");
            return $mysqli;
        }
        public function Close($mysqli)
        {
            $mysqli->close();
        }

    }

     $Connect = new Get_Set_DB_Class();

If you want feedback, get it. After looking at your code, I would like to recommend that you "pay attention to the great opportunities that open up in the field of plumbing."

S
sanex3339, 2015-10-18
@sanex3339

MVC

A
Andrey Sanych, 2015-10-18
@mountpoint

and this.. store passwords encrypted

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question