Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

file_get_contents in javascript

// You can use Fetch to get data.
fetch('http://example.com') // url here
  .then((response) => {
    return response.json(); // replace .json() to .text() for plain text
  })
  .then((daat) => {
    console.log(daat);
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
3+9 =