- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
<?php
$css_fold = 'css/';
$js_fold = 'js/';
$css_files= scandir($css_fold);
$js_files= scandir($js_fold);
foreach ($js_files as $js_file) {
if(preg_match('/\.(js)/', $js_file)){
if (substr($js_file, -3)==".js") {
echo'<script src="js/'.$js_file.'"></script>'.PHP_EOL;
}
}
}
foreach ($css_files as $css_file) {
if(preg_match('/\.(css)/', $css_file)){
if (substr($css_file, -4)==".css") {
echo'<link rel="stylesheet" type="text/css" href="css/'.$css_file.'">'.PHP_EOL;
}
}
}
?>
unicorn 18.05.2019 15:19 # 0
Desktop 18.05.2019 15:22 # 0
TEH3OPHblu_nemyx 18.05.2019 15:25 # 0
Rooster 18.05.2019 18:22 # +1
https://avatars.mds.yandex.net/get-marketpic/163900/market_ZHPwHdIAecRN9TKhRT_qfQ/orig
unicorn 18.05.2019 15:26 # 0
cmepmop 18.05.2019 21:13 # 0