Quantcast
Channel: Get file content from URL? - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by T.Todua for Get file content from URL?

1) local simplest methods<?phpecho readfile("http://example.com/"); //needs "Allow_url_include" enabled//ORecho include("http://example.com/"); //needs "Allow_url_include" enabled//ORecho...

View Article


Answer by Dr D for Get file content from URL?

Don't forget: to get HTTPS contents, your OPENSSL extension should be enabled in your php.ini. (how to get contents of site use HTTPS)

View Article

Answer by Steve Mayne for Get file content from URL?

$url = "https://chart.googleapis....";$json = file_get_contents($url);Now you can either echo the $json variable, if you just want to display the output, or you can decode it, and do something with it,...

View Article

Answer by John Parker for Get file content from URL?

Depending on your PHP configuration, this may be a easy as using:$jsonData =...

View Article

Answer by cweiske for Get file content from URL?

Use file_get_contents in combination with json_decode and echo.

View Article


Get file content from URL?

When I use following URL in browser then it prompt me to download a text file with JSOn...

View Article
Browsing latest articles
Browse All 6 View Live