This commit is contained in:
2026-04-13 02:09:24 +02:00
parent 3527066cd6
commit 408376b828
3 changed files with 63 additions and 64 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
$apiKey = '23af653f99d2e7ac884415805e7ca84c';
function searchMovie($query) {
global $apiKey;
$url = "https://api.themoviedb.org/3/search/multi?api_key=" . $apiKey . "&language=fr-FR&query=" . urlencode($query);
// On récupère le JSON
$response = file_get_contents($url);
return json_decode($response, true);
}
?>