SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    usa
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Please help script not uploading images PHP Error indicated!

    Hi,

    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,

    Regards,
    u2fan

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,191
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    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.

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    usa
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot that worked!

    Regards,
    u2fan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •