How do I modify a server's files when I disable copy, unlink?

Source: Internet
Author: User
I write the php file, in which copy, unlink, Move_uploaded_files will be banned by the server;
However, there are some PHP scripts in the server that can operate correctly. Why is this?
In such an environment, how to modify the server files (ordinary files, such as JPG)?


Reply to discussion (solution)

To turn off dangerous functions:
Disable_functions = Chdir,chroot,dir,getcwd,opendir,readdir,scandir,fopen,unlink,delete,copy,mkdir, Rmdir,rename, File,file_get_contents,fputs,fwrite,chgrp,chmod,chown

If these functions are disabled in the configuration file, the functions cannot be used by the entire site, and some files are not available and some are unavailable.

The second question, if you want to rename the jpg file, and then you banned the rename function, then you can only down, the local change the name and then FTP sent up it.

Not satisfied with the answer

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.