📜 ⬆️ ⬇️

Tips for CMS developers and PHP frameworks

More than once I come across a similar problem when people come and ask for help in solving the problems of load distribution with a sudden increase in the audience of their sites. Well and the most laborious in this problem are self-written CMS-like systems, which sometimes have to be rewritten completely.

I will not go into the details of the distribution of the load, and otpishu only the basic rules, subject to which your CMS will easily scale.


Rule # 1 : all executable scripts must have the extension .php and only .php , even inclusions
There will be no problems running on another web server, as well as for security.

#2: .htaccess :
RewriteRule ^(.+)$ index.php?path=$1
.. - .htaccess,

#3: mod_rewrite-, (jpg, gif, css, js ..)

#4:
..

#5: , html- php- .
, html xml ..

#6: SQL-
Google Analytics -

#7: SQL ,
— , ,

#8: ,
, ,

#9:

#10: (/ )
MySQL (Master-Slave)
*

#11: PHP, -, - , ($_SERVER, $_POST, $_GET, $_SESSION) —
- , ( )


, , : — , , , , , , .

, …
, .

')

Source: https://habr.com/ru/post/38444/


All Articles