From 2383f9d4f6aacbafe9ee749aff669c8153e21632 Mon Sep 17 00:00:00 2001 From: Aleksandr Shelkovin Date: Fri, 24 Jan 2025 21:01:12 +0300 Subject: [PATCH] ajax --- AXIOS/index.php | 63 ++++++++++++++++++++++++++++++++++++++++++++ AXIOS/music_html.php | 8 ++++++ AXIOS/music_json.php | 10 +++++++ 3 files changed, 81 insertions(+) create mode 100644 AXIOS/index.php create mode 100644 AXIOS/music_html.php create mode 100644 AXIOS/music_json.php diff --git a/AXIOS/index.php b/AXIOS/index.php new file mode 100644 index 0000000..9d517ad --- /dev/null +++ b/AXIOS/index.php @@ -0,0 +1,63 @@ + + + + + + + MP3 Music + + + + +
+

Подгрузка записей

+ + + + + + + + + \ No newline at end of file diff --git a/AXIOS/music_html.php b/AXIOS/music_html.php new file mode 100644 index 0000000..eb829e3 --- /dev/null +++ b/AXIOS/music_html.php @@ -0,0 +1,8 @@ + + + + +HTML_END; diff --git a/AXIOS/music_json.php b/AXIOS/music_json.php new file mode 100644 index 0000000..24413c8 --- /dev/null +++ b/AXIOS/music_json.php @@ -0,0 +1,10 @@ + ["music.mp3", "music.ogg"]], +["type" => ["audio/mpeg", "audio/mpeg"]], +["src" => ["music1.mp3", "music1.ogg"]], +["type" => ["audio/mpeg", "audio/mpeg"]]); + +header('Content-Type: application/json; charset=utf-8'); + +echo json_encode($feed); \ No newline at end of file