PHP file doesn't write to current directory?

前端 未结 2 1597
醉话见心
醉话见心 2021-01-23 22:28

I have a PHP file on a web-host that is as follows:


But the file

2条回答
  •  悲&欢浪女
    2021-01-23 22:30

    Why not? Is it a permissions issue?

    The question you should be asking yourself is why don't you know already?

    The code will be producing an error or warning - why don't you know what that is?

    It's likely a permissions issue - what are the permissions?

    BTWE: writing content within your document root, to a directory which will execute PHP is a huge security vulnerability. i.e. if it is a permissions issue, then changing the permissions is the wrong way to solve the problem.

提交回复
热议问题