Top "File-get-contents" questions

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

simplexml_load_file not working

I have this piece of code below which works fine on my remote hosted server, but isnt for some reason …

php apache simplexml file-get-contents
PHP - Content-type not specified assuming application/x-www-form-urlencoded

For 2 days I'm having trouble with my PHP script on my server. I've changed nothing and suddenly it didn't work …

php file-get-contents
Upload a file using file_get_contents

I realise I can do this with CURL very easily, but I was wondering if it was possible to use …

php file-upload file-get-contents
Loading a remote xml page with file_get_contents()

I have seen some questions similar to this on the internet, none with an answer. I want to return the …

php xml file-get-contents
Laravel5 Json get file contents

I'm using Laravel-5 right now and I've just created a JSON file called test(test.json). My question is: Where …

json laravel file-get-contents
Search String and Return Line PHP

I'm trying to search a PHP file for a string and when that string is found I want to return …

php line file-get-contents strpos
PHP sending variables to file_get_contents()

I want to be able to send a few variables to a file through file_get_contents(). This is firstfile.…

php file-get-contents
file_get_contents() error

I am using file_get_contents on my PHP and it throws some errors: My code #try to fetch from …

php file-get-contents
Read and parse contents of very large file

I am trying to parse a tab delimited file that is ~1GB in size. Where I run the script i …

php file file-get-contents
file_get_contents is not working for some url

I use file_get_contents in PHP. In the below code in first URL works fine but the second one …

php curl file-get-contents