We are configuring a new script on our Linux server website. The script allows uploading of images from PC to site. However, when we upload the image the following error message shows up on the logs:
2012-04-05 18:40:00 Warning: Warning (2): readfile() has been disabled for security reasons in
Please assist me to find out how to resolve this issue.
In your servers php.ini file is a line that begins with disable_functions, this line gives the server administrator the ability to disable any PHP function of their choice. If you simply find this line in your php.ini file and remove readfile from it the log will stop filling up with it and the script will run normally.