M
M
MakStashkevich2017-02-23 21:55:12
PHP
MakStashkevich, 2017-02-23 21:55:12

The text received from VKontakte (VK API) is not displayed on the site, what should I do?

The essence of the story is this, I have a php script on the main page of the index.php site of the form:

include_once("php/Utils.php");
$params = [
     'owner_id' => -123456789,
     'count' => 1,
     ];
$answer = new Utils;
$news = $answer->request('wall.get', $params);
$text = $news['response']['items'][0]["text"];
echo "<h1>текст - ".$text."</h1>";

I rechecked, I get the text correctly, but for some reason it is not displayed on the site at all, that is, it is displayed cleanly on the site, although it should be . Please help...
<h1>текст - </h1>
<h1>текст - полученный текст статьи</h1>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2017-02-23
@dimonchik2013

different quotes
and in general xs will you get it

K
Kirill Zhilyaev, 2017-02-24
@kirill_782

When will VK ban requests without ???
Related question: add v to requests, equal to 5.62

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question