Click here to Skip to main content
14,733,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hola quería saber porque me sale este error ya intente cambiarlo todo y no se que es.

[Edit GJL]
"Hello, I wanted to know why I get this error and I tried to change everything and I don't know what it is."
[/Edit]

What I have tried:

<?PHP
	require 'api.php';
	$new = file_get_contents ('https://api.themoviedb.org/3/movie/550?api_key=xxxxxxxxxxxxxxxxx' &language=es-MX&page=1);
	echo $new;
	exit;
	?>
Posted
Updated 10-Jul-20 23:52pm
v5
Comments
Garth J Lancaster 11-Jul-20 2:08am
   
should this Hide   Copy Code
'https://api.themoviedb.org/3/movie/550?api_key=xxxxxxxxxxxxxxxxx' &language=es-MX&page=1
be more like this Hide   Copy Code
'https://api.themoviedb.org/3/movie/550?api_key=xxxxxxxxxxxxxxxxx&language=es-MX&page=1'


BTW : Please DO NOT display your API keys here - I have removed them and replaced with x's

At a guess, your quote is in the wrong place:
$new = file_get_contents ('https://...1b40f' &language=es-MX&page=1);
                                           ^
Either you need a comma between the two parameters, or more likely the quote should be at the end of the complete string:
$new = file_get_contents ('https://api.themoviedb.org/3/movie/550?api_key=3b5be2c605681b40f&language=es-MX&page=1');
   
Comments
Garth J Lancaster 11-Jul-20 2:13am
   
dammmit I wish these pages refreshed more quickly - if I'd seen that you'd updated it (with the same as I had) I wouldnt have bothered :sigh:
require 'api.php';
//Should be...
require ('api.php');
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900