[php]
$api = file_get_contents(‘https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=25&playlistId=UU8EE4Ut5WkXHqMZJcd2vG3w&key=AIzaSyBw1asGhkxHxFf6JqyNrTqIeJ9sjMKde3w’);
[/php]
That is what I have an I have tried every version of how to put php variable in there… but it’s a no go…
I have an $id, $maxVids and $key that I would like to do this with:
playlistId=$id
key=$key
maxResults=$maxVids
Trust me when I say I’ve tried to do this in every way I could think of and find… nothing seems to be working…
Just want it that way so I can make changes on the fly… quick and easy without opening up files…etc…
Suggestions? I’ve put them in “”, ‘’, “’’”, . $id . and every other way there is to do but no good. It would be awesome and easy if these were NOT equal to a $variable already I would just use the <?= $id ?> but since it’s already in the php tag I can’t do that either… [NOT to worry that’s not a real key ;)]…
Thanks!