u2fan — 2012-04-13T22:56:47-04:00 — #1
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.
I appreciate any help. Thanks,
chris_upjohn — 2012-04-14T02:57:27-04:00 — #2
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.
u2fan — 2012-04-14T04:47:44-04:00 — #3
Thanks a lot that worked!