Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Well, depending on how you get this content
, for example, in the root of the site you have file.json
And you want to output html to the browser with the content from file.json through a php script
Then like this:
<?php
$content = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/file.json');
echo $contents;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question