Last active
June 5, 2021 11:03
-
-
Save softsolution/f3d409348a94c593f69f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($_SERVER['REQUEST_URI'] == "/") { ?> | |
html код будет показан только на главной странице | |
<?php } else {?> | |
html код будет показан только на всех страницах, кроме главной | |
<?php } ?> | |
<?php /* для профиля пользователя */ | |
if(preg_match('/^\/users\/([a-zA-z0-9\.]+)$/i', $_SERVER['REQUEST_URI'])){ ?> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment