Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TMDb文档说我必须放置一个 CGI 转义字符串才能执行 JSON 请求。我使用 PHP,我有以下字符串。
$string = "Movie name"; $search = $tmdb->searchMovie($string);
$string 必须是“CGI 转义”才能将其放入 JSON API 请求中。
有任何想法吗?谢谢
这意味着
urlencode(string);
所以在你的情况下:
$search = $tmdb->searchMovie(urlencode($string));