I want to get the content in a text file and I am using file_get_contents()
But problem starts when I try to read files having white space into the file name.
for example: /home/project/text cv.txt cannot be read using file_get_contents().
Is there any alternative to read .txt files ?
Another option would be to use realpath() to wrap the URI to your file: