I am using the PHP readfile function to read a file and print it like so: print readfile ('anyfile'). This works, but the content length of the file is added at the end of the string also. Why?
I am using the PHP readfile function to read a file and print it
Share
readfile()prints out the contents itself and returns the content length — you’re effectively printing the contents withreadfileand then printing the content length withprint. Remove print and just use