Top "File-get-contents" questions

In PHP, file_get_contents is the preferred way to read the contents of a file into a string.

PHP file_get_contents() returns "failed to open stream: HTTP request failed!"

I am having problems calling a url from PHP code. I need to call a service using a query string …

php api query-string file-get-contents
How to post data in PHP using file_get_contents?

I'm using PHP's function file_get_contents() to fetch contents of a URL and then I process headers through the …

php http http-post file-get-contents
file_get_contents(): SSL operation failed with code 1, Failed to enable crypto

I’ve been trying to access this particular REST service from a PHP page I’ve created on our server. …

php rest ssl file-get-contents
How to get file_get_contents() to work with HTTPS?

I'm working on setting up credit card processing and needed to use a workaround for CURL. The following code worked …

php curl https file-get-contents
Get file content from URL?

When I use following URL in browser then it prompt me to download a text file with JSOn content. https://…

php url file-get-contents
Show image using file_get_contents

how can I display an image retrieved using file_get_contents in php? Do i need to modify the headers …

php http-headers file-get-contents
PHP ini file_get_contents external url

I use following PHP function: file_get_contents('http://example.com'); Whenever I do this on a certain server, the …

php url external file-get-contents ini
get url content PHP

I wanna put the content of a URL in a string and the process it. However, I have a problem. …

php url curl file-get-contents
Does file_get_contents() have a timeout setting?

I am calling a series of links using the file_get_contents() method in a loop. Each link may take …

php timeout file-get-contents
JSON to PHP Array using file_get_contents

I am trying to fetch the below json content using a magazine api. The output of the json is like …

php arrays file-get-contents json